mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Auto close context menu
This commit is contained in:
parent
b8b34f7f47
commit
a19612575b
1 changed files with 8 additions and 2 deletions
|
@ -127,12 +127,18 @@ class ListOptionsMenu extends StatelessWidget {
|
||||||
CustomListTile(
|
CustomListTile(
|
||||||
title: AppLocalizations.of(context)!.openListUrl,
|
title: AppLocalizations.of(context)!.openListUrl,
|
||||||
icon: Icons.open_in_browser_rounded,
|
icon: Icons.open_in_browser_rounded,
|
||||||
onTap: () => openUrl(list.url)
|
onTap: () {
|
||||||
|
Navigator.pop(context); // Closes the context menu
|
||||||
|
openUrl(list.url);
|
||||||
|
}
|
||||||
),
|
),
|
||||||
CustomListTile(
|
CustomListTile(
|
||||||
title: AppLocalizations.of(context)!.selectionMode,
|
title: AppLocalizations.of(context)!.selectionMode,
|
||||||
icon: Icons.check_rounded,
|
icon: Icons.check_rounded,
|
||||||
onTap: openSelectionMode
|
onTap: () {
|
||||||
|
Navigator.pop(context); // Closes the context menu
|
||||||
|
openSelectionMode();
|
||||||
|
}
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
child: Material(
|
child: Material(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue