From 2f2e4d2bb148269b8823c055475535e27290e63a Mon Sep 17 00:00:00 2001 From: fuwa Date: Fri, 29 Nov 2019 01:25:50 +0800 Subject: [PATCH] make HUD tx bigger --- cyberwow/lib/widget/synced.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cyberwow/lib/widget/synced.dart b/cyberwow/lib/widget/synced.dart index 5c57b78..c88e692 100644 --- a/cyberwow/lib/widget/synced.dart +++ b/cyberwow/lib/widget/synced.dart @@ -36,7 +36,7 @@ Widget summary(BuildContext context, SyncedState state) { final poolLength = state.getTransactionPool.length; final poolLengthNotice = poolLength > 0 ? '[${poolLength}] ' : ''; final txNotice = state.getTransactionPool.isEmpty ? - '' : poolLengthNotice + state.getTransactionPool.first['id ']; + '' : poolLengthNotice + state.getTransactionPool.first['id '].substring(0, 6) + ' ...'; return Container ( @@ -102,7 +102,11 @@ Widget summary(BuildContext context, SyncedState state) { child: Text ( txNotice, - style: Theme.of(context).textTheme.body2, + style: TextStyle + ( + fontFamily: 'RobotoMono', + fontSize: 14, + ), key: ValueKey(poolLength), ), ),