fix: Archive

This commit is contained in:
Krille 2023-01-08 12:32:35 +01:00
commit eac784e33b
11 changed files with 89 additions and 53 deletions

View file

@ -29,12 +29,12 @@ extension on PermissionLevel {
Future<int?> showPermissionChooser(BuildContext context,
{int currentLevel = 0}) async {
final permissionLevel = await showModalActionSheet(
final permissionLevel = await showConfirmationDialog(
context: context,
title: L10n.of(context)!.setPermissionsLevel,
actions: PermissionLevel.values
.map(
(level) => SheetAction(
(level) => AlertDialogAction(
key: level,
label: level.toLocalizedString(context),
),