From 646f45f54bc0974fec40468b1b5ee0fa0e6c1b54 Mon Sep 17 00:00:00 2001 From: fuwa Date: Sun, 17 Nov 2019 10:50:43 +0800 Subject: [PATCH] less noise in resync state --- cyberwow/lib/widget/resyncing.dart | 12 ++++++++++-- cyberwow/lib/widget/syncing.dart | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cyberwow/lib/widget/resyncing.dart b/cyberwow/lib/widget/resyncing.dart index 4e86f70..1e1eb46 100644 --- a/cyberwow/lib/widget/resyncing.dart +++ b/cyberwow/lib/widget/resyncing.dart @@ -43,6 +43,10 @@ Widget buildReSyncing(BuildContext context, ReSyncingState state) { mainAxisAlignment: MainAxisAlignment.center, children: [ + Spacer + ( + flex: 1, + ), Expanded ( flex: 1, @@ -52,11 +56,15 @@ Widget buildReSyncing(BuildContext context, ReSyncingState state) { reverse: true, child: Text ( - state.stdout.join(), + state.stdout.last, style: Theme.of(context).textTheme.body1, ) ) - ) + ), + Spacer + ( + flex: 1, + ), ], ), ), diff --git a/cyberwow/lib/widget/syncing.dart b/cyberwow/lib/widget/syncing.dart index dcaf6c8..f1fb3fa 100644 --- a/cyberwow/lib/widget/syncing.dart +++ b/cyberwow/lib/widget/syncing.dart @@ -56,7 +56,7 @@ Widget buildSyncing(BuildContext context, SyncingState state) { style: Theme.of(context).textTheme.body1, ) ) - ) + ), ], ), ),