used expression functions where possible
This commit is contained in:
parent
81b10cf3e3
commit
8eb31434e2
|
@ -178,9 +178,7 @@ class _AccountsConfigAddInstanceDialog extends HookWidget {
|
|||
actions: <Widget>[
|
||||
FlatButton(
|
||||
child: Text('Cancel'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
FlatButton(
|
||||
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
||||
|
@ -252,9 +250,7 @@ class _AccountsConfigAddAccountDialog extends HookWidget {
|
|||
actions: <Widget>[
|
||||
FlatButton(
|
||||
child: Text('Cancel'),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
FlatButton(
|
||||
child: !loading.value ? Text('Add') : CircularProgressIndicator(),
|
||||
|
|
Loading…
Reference in New Issue