bug fix in cutomTweenDemo (#675)

pull/679/head
Priyanshu Agarwal 4 years ago committed by GitHub
parent 4ae90f3aa9
commit 6502209a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,27 +71,32 @@ class _CustomTweenDemoState extends State<CustomTweenDemo>
], ],
), ),
body: SafeArea( body: SafeArea(
child: Column( child: Container(
mainAxisAlignment: MainAxisAlignment.end, alignment: Alignment.bottomCenter,
crossAxisAlignment: CrossAxisAlignment.stretch, child: SingleChildScrollView(
children: [ child: Column(
Padding( mainAxisAlignment: MainAxisAlignment.end,
padding: EdgeInsets.all(8.0), crossAxisAlignment: CrossAxisAlignment.stretch,
child: Card( children: [
child: Container( Padding(
padding: EdgeInsets.all(8.0), padding: EdgeInsets.all(8.0),
child: AnimatedBuilder( child: Card(
animation: animation, child: Container(
builder: (context, child) { padding: EdgeInsets.all(8.0),
return Text('${animation.value}', child: AnimatedBuilder(
style: TextStyle( animation: animation,
fontSize: 16, fontFamily: 'SpecialElite')); builder: (context, child) {
}, return Text('${animation.value}',
style: TextStyle(
fontSize: 16, fontFamily: 'SpecialElite'));
},
),
),
), ),
), ),
), ],
), ),
], ),
), ),
), ),
); );

Loading…
Cancel
Save