tweak indicator layout

master
fuwa 5 years ago
parent 855e7207e5
commit 57d95e7594

@ -212,6 +212,7 @@ class SyncedState extends HookedState {
void updateConnected(bool c) { void updateConnected(bool c) {
if (connected != c) { if (connected != c) {
// print('update connected: connected: ${connected}, c: ${c}');
connected = c; connected = c;
setState(this); setState(this);
} }

@ -41,7 +41,7 @@ Widget buildSynced(BuildContext context, SyncedState state) {
[ [
Spacer Spacer
( (
flex: 3, flex: 21,
), ),
Image.asset Image.asset
('assets/wownero_symbol.png', ('assets/wownero_symbol.png',
@ -49,11 +49,11 @@ Widget buildSynced(BuildContext context, SyncedState state) {
), ),
Spacer Spacer
( (
flex: 2, flex: 8,
), ),
new Expanded new Expanded
( (
flex: 1, flex: 15,
child: new SingleChildScrollView child: new SingleChildScrollView
( (
child: Text child: Text
@ -75,16 +75,12 @@ Widget buildSynced(BuildContext context, SyncedState state) {
), ),
SizedBox SizedBox
( (
height: 30.0, height: 20.0,
width: 30.0, width: 20.0,
child: (state.connected) ? child: (state.connected) ?
Container() : Container() :
CircularProgressIndicator(), CircularProgressIndicator(),
), ),
Spacer
(
flex: 1,
),
], ],
), ),
), ),

Loading…
Cancel
Save