refactor
This commit is contained in:
parent
badd098fe0
commit
661f57d599
@ -144,9 +144,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
});
|
||||
})
|
||||
.catchError((_) {
|
||||
setState(() {
|
||||
_allowAdd = true;
|
||||
});
|
||||
setState(() => _allowAdd = true);
|
||||
});
|
||||
|
||||
Navigator.of(context).pop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user