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(
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Padding(
padding: EdgeInsets.all(8.0),
child: Card(
child: Container(
child: Container(
alignment: Alignment.bottomCenter,
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Padding(
padding: EdgeInsets.all(8.0),
child: AnimatedBuilder(
animation: animation,
builder: (context, child) {
return Text('${animation.value}',
style: TextStyle(
fontSize: 16, fontFamily: 'SpecialElite'));
},
child: Card(
child: Container(
padding: EdgeInsets.all(8.0),
child: AnimatedBuilder(
animation: animation,
builder: (context, child) {
return Text('${animation.value}',
style: TextStyle(
fontSize: 16, fontFamily: 'SpecialElite'));
},
),
),
),
),
),
],
),
],
),
),
),
);

Loading…
Cancel
Save