diff --git a/lib/main.dart b/lib/main.dart index 192c590..db38f4c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -285,6 +285,12 @@ class _MyHomePageState extends State { content: const Text( "Are you sure you want to log out?"), actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text("Nevermind"), + ), TextButton( onPressed: () async { Navigator.pop(context); @@ -297,12 +303,6 @@ class _MyHomePageState extends State { }); }, child: const Text("Do it!")), - TextButton( - onPressed: () { - Navigator.pop(context); - }, - child: const Text("Nevermind"), - ), ], ), ), diff --git a/lib/widgets/filter_menu.dart b/lib/widgets/filter_menu.dart index 1e8ff4d..98e1e5c 100644 --- a/lib/widgets/filter_menu.dart +++ b/lib/widgets/filter_menu.dart @@ -69,6 +69,16 @@ class _FilterMenuState extends State { Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ + TextButton( + onPressed: () { + setState(() { + _checked.forEach((key, value) { + _checked[key] = false; + }); + }); + }, + child: const Text("Reset") + ), TextButton( onPressed: () { List items = _checked.keys @@ -80,15 +90,6 @@ class _FilterMenuState extends State { }, child: const Text("Done"), ), - TextButton( - onPressed: () { - setState(() { - _checked.forEach((key, value) { - _checked[key] = false; - }); - }); - }, - child: const Text("Reset")), ], ) ],