mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-08 15:47:47 +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(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(AppLocalizations.of(context)!.addCustomRule),
|
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(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -66,6 +66,7 @@ class FiltersFab extends StatelessWidget {
|
||||||
void openAddCustomRule() {
|
void openAddCustomRule() {
|
||||||
Navigator.of(context).push(
|
Navigator.of(context).push(
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
fullscreenDialog: true,
|
||||||
builder: (context) => AddCustomRule(
|
builder: (context) => AddCustomRule(
|
||||||
onConfirm: confirmAddRule
|
onConfirm: confirmAddRule
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue