diff --git a/lib/screens/filters/add_custom_rule.dart b/lib/screens/filters/add_custom_rule.dart index a3b70b1..d6be591 100644 --- a/lib/screens/filters/add_custom_rule.dart +++ b/lib/screens/filters/add_custom_rule.dart @@ -134,6 +134,18 @@ class _AddCustomRuleState extends State { return Scaffold( appBar: AppBar( title: Text(AppLocalizations.of(context)!.addCustomRule), + actions: [ + IconButton( + onPressed: checkValidValues() == true + ? () { + Navigator.pop(context); + widget.onConfirm(buildRule()); + } + : null, + icon: const Icon(Icons.check) + ), + const SizedBox(width: 10) + ], ), body: ListView( children: [ diff --git a/lib/screens/filters/fab.dart b/lib/screens/filters/fab.dart index ee6b121..d91bcdc 100644 --- a/lib/screens/filters/fab.dart +++ b/lib/screens/filters/fab.dart @@ -66,6 +66,7 @@ class FiltersFab extends StatelessWidget { void openAddCustomRule() { Navigator.of(context).push( MaterialPageRoute( + fullscreenDialog: true, builder: (context) => AddCustomRule( onConfirm: confirmAddRule ),