refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-05 20:38:15 -06:00
parent 6e42899dd3
commit 847bf68f85

View File

@ -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),