Re added save custom rule

This commit is contained in:
Juan Gilsanz Polo 2022-11-11 02:07:24 +01:00
parent 9f597b0eea
commit c7aa4c1736
2 changed files with 13 additions and 0 deletions

View file

@ -134,6 +134,18 @@ class _AddCustomRuleState extends State<AddCustomRule> {
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: [

View file

@ -66,6 +66,7 @@ class FiltersFab extends StatelessWidget {
void openAddCustomRule() {
Navigator.of(context).push(
MaterialPageRoute(
fullscreenDialog: true,
builder: (context) => AddCustomRule(
onConfirm: confirmAddRule
),