This commit is contained in:
parent
6e42899dd3
commit
847bf68f85
@ -144,8 +144,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed:
|
||||
_allowAdd
|
||||
? () {
|
||||
showDialog(
|
||||
? () async => showDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
@ -198,8 +197,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
)
|
||||
: null,
|
||||
tooltip: 'Add Mount',
|
||||
child: const Icon(Icons.add),
|
||||
|
Loading…
x
Reference in New Issue
Block a user