mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
bug fix in cutomTweenDemo (#675)
This commit is contained in:
committed by
GitHub
parent
4ae90f3aa9
commit
6502209a78
@@ -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'));
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user