import 'package:fikoyt_merkez/main.dart'; import 'package:flutter/material.dart'; import '../fitness_app_theme.dart'; class GlassView extends StatelessWidget { final AnimationController? animationController; final Animation? animation; const GlassView({super.key, this.animationController, this.animation}); @override Widget build(BuildContext context) { return AnimatedBuilder( animation: animationController!, builder: (BuildContext context, Widget? child) { return FadeTransition( opacity: animation!, child: Transform( transform: Matrix4.translationValues(0.0, 30 * (1.0 - animation!.value), 0.0), child: Column( children: [ Padding( padding: const EdgeInsets.only(left: 24, right: 24, top: 0, bottom: 24), child: Stack( clipBehavior: Clip.none, children: [ Padding( padding: const EdgeInsets.only(top: 16), child: Container( decoration: BoxDecoration( color: HexColor("#D7E0F9"), borderRadius: BorderRadius.only(topLeft: Radius.circular(8.0), bottomLeft: Radius.circular(8.0), bottomRight: Radius.circular(8.0), topRight: Radius.circular(8.0)), // boxShadow: [ // BoxShadow( // color: FitnessAppTheme.grey.withOpacity(0.2), // offset: Offset(1.1, 1.1), // blurRadius: 10.0), // ], ), child: Column( children: [ Padding( padding: const EdgeInsets.only(left: 68, bottom: 12, right: 16, top: 12), child: Text( 'Prepare your stomach for lunch with one or two glass of water', textAlign: TextAlign.left, style: TextStyle( fontFamily: FitnessAppTheme.fontName, fontWeight: FontWeight.w500, fontSize: 14, letterSpacing: 0.0, color: FitnessAppTheme.nearlyDarkBlue.withOpacity(0.6), ), ), ), ], ), ), ), Positioned( top: -12, left: 0, child: SizedBox( width: 80, height: 80, child: Image.asset("assets/fitness_app/glass.png"), ), ) ], ), ), ], ), ), ); }, ); } }