mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-03 13:43:59 +01:00
animate height change
This commit is contained in:
@@ -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),
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user