animate height change

This commit is contained in:
fuwa
2019-06-27 01:01:04 +00:00
parent c702c46d93
commit 67ed39c4c3
+3 -1
View File
@@ -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),
)
)
),