animate height change

pull/1/head
fuwa 5 years ago
parent c702c46d93
commit 67ed39c4c3

@ -54,8 +54,9 @@ Widget buildSynced(BuildContext context, SyncedState state) {
Expanded
(
flex: 15,
child: SingleChildScrollView
child: AnimatedSwitcher
(
duration: Duration(milliseconds: 500),
child: Text
(
'${state.height}',
@ -66,6 +67,7 @@ Widget buildSynced(BuildContext context, SyncedState state) {
fontWeight: FontWeight.bold,
color: config.textColor,
),
key: ValueKey<int>(state.height),
)
)
),