moved cancel buttons before add buttons
This commit is contained in:
parent
c08e07311a
commit
94ff01bc55
|
@ -177,6 +177,12 @@ class _AccountsConfigAddInstanceDialog extends HookWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
|
FlatButton(
|
||||||
|
child: Text('Cancel'),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
||||||
onPressed: instanceController.text.isEmpty
|
onPressed: instanceController.text.isEmpty
|
||||||
|
@ -197,12 +203,6 @@ class _AccountsConfigAddInstanceDialog extends HookWidget {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
|
||||||
child: Text('Cancel'),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -251,6 +251,12 @@ class _AccountsConfigAddAccountDialog extends HookWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
|
FlatButton(
|
||||||
|
child: Text('Cancel'),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
||||||
onPressed:
|
onPressed:
|
||||||
|
@ -273,12 +279,6 @@ class _AccountsConfigAddAccountDialog extends HookWidget {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
|
||||||
child: Text('Cancel'),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue