Minor change for gallery when displayed as share mode

This commit is contained in:
2024-08-12 00:45:22 +00:00
committed by GitHub
parent f599d52ce8
commit 32a42df473
11 changed files with 145 additions and 45 deletions

View File

@@ -9,7 +9,8 @@ enum UserPermission with EnumFlag {
readGallery,
editGallery,
deleteGallery,
manageTasks;
manageTasks,
shareGallery;
String localText(BuildContext context) {
final i18n = AppLocalizations.of(context)!;
@@ -22,11 +23,13 @@ enum UserPermission with EnumFlag {
return i18n.deleteGallery;
case UserPermission.manageTasks:
return i18n.manageTasks;
case UserPermission.shareGallery:
return i18n.shareGallery;
}
}
}
const userPermissionAll = 15;
const userPermissionAll = 31;
class UserPermissions {
UserPermissions(this.code);