From 94ff01bc550a7b495df5056a51a206dd719380f7 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Tue, 8 Sep 2020 16:35:54 +0200 Subject: [PATCH] moved cancel buttons before add buttons --- lib/pages/settings.dart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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(); - }, - ) ], ); }