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