mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-20 05:49:12 +00:00
Re added save custom rule
This commit is contained in:
parent
9f597b0eea
commit
c7aa4c1736
2 changed files with 13 additions and 0 deletions
|
@ -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: [
|
||||
|
|
|
@ -66,6 +66,7 @@ class FiltersFab extends StatelessWidget {
|
|||
void openAddCustomRule() {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
fullscreenDialog: true,
|
||||
builder: (context) => AddCustomRule(
|
||||
onConfirm: confirmAddRule
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue