Auto close context menu

This commit is contained in:
Juan Gilsanz Polo 2023-11-18 23:00:00 +01:00
parent b8b34f7f47
commit a19612575b

View file

@ -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(