diff --git a/lib/pages/settings.dart b/lib/pages/settings.dart index 655d99c..8087e3d 100644 --- a/lib/pages/settings.dart +++ b/lib/pages/settings.dart @@ -177,6 +177,12 @@ class _AccountsConfigAddInstanceDialog extends HookWidget { ), ), actions: [ + FlatButton( + child: Text('Cancel'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), FlatButton( child: !loading.value ? Text('Add') : CircularProgressIndicator(), onPressed: instanceController.text.isEmpty @@ -197,12 +203,6 @@ class _AccountsConfigAddInstanceDialog extends HookWidget { Navigator.of(context).pop(); }, ), - FlatButton( - child: Text('Cancel'), - onPressed: () { - Navigator.of(context).pop(); - }, - ) ], ); } @@ -251,6 +251,12 @@ class _AccountsConfigAddAccountDialog extends HookWidget { ], ), actions: [ + FlatButton( + child: Text('Cancel'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), FlatButton( child: !loading.value ? Text('Add') : CircularProgressIndicator(), onPressed: @@ -273,12 +279,6 @@ class _AccountsConfigAddAccountDialog extends HookWidget { Navigator.of(context).pop(); }, ), - FlatButton( - child: Text('Cancel'), - onPressed: () { - Navigator.of(context).pop(); - }, - ) ], ); }