π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'main' into locker_fix_5
AmanRajSinghMouryaccf48951b7f0
diff --cc mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dartindex 70e9e9be75,4a2804655d..ba54c4c43e--- a/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart+++ b/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart@@@ -89,29 -90,21 +90,44 @@@ class FilePopupMenuWidget extends StateisLast: false,),),+ PopupMenuItem<String>(+ value: 'toggle_favorite',+ padding: EdgeInsets.zero,+ height: 0,+ child: FutureBuilder<bool>(+ future: FileActions.isFavorite(file),+ initialData: false,+ builder: (context, snapshot) {+ final isFavorite = snapshot.data ?? false;+ return PopupMenuItemWidget(+ icon: Icon(+ isFavorite ? Icons.star_rounded : Icons.star_border_rounded,+ color: colorScheme.textBase,+ size: 20,+ ),+ label:+ isFavorite ? context.l10n.unfavorite : context.l10n.favorite,+ isFirst: false,+ isLast: false,+ );+ },+ ),+ ),+ PopupMenuItem<String>(+ value: 'download',+ padding: EdgeInsets.zero,+ height: 0,+ child: PopupMenuItemWidget(+ icon: HugeIcon(+ icon: HugeIcons.strokeRoundedDownload01,+ color: colorScheme.textBase,+ size: 20,+ ),+ label: "Save",+ isFirst: false,+ isLast: false,+ ),+ ),PopupMenuItem<String>(value: 'share_link',padding: EdgeInsets.zero,@@@ -160,9 -153,9 +176,12 @@@case 'edit':_editFile(context);break;+ case 'toggle_favorite':+ _toggleFavorite(context);+ break;+ case 'download':+ _downloadFile(context);+ break;case 'share_link':_shareFileLink(context);break;diff --cc mobile/apps/locker/lib/utils/file_actions.dartindex f26c9aab6c,4a92ee3e4d..6d2496d36f--- a/mobile/apps/locker/lib/utils/file_actions.dart+++ b/mobile/apps/locker/lib/utils/file_actions.dart@@@ -12,11 -16,15 +16,15 @@@ import "package:locker/services/trash/timport "package:locker/ui/components/delete_confirmation_dialog.dart";import "package:locker/ui/components/file_edit_dialog.dart";import "package:locker/ui/components/share_link_dialog.dart";- import "package:locker/utils/collection_list_util.dart";- import "package:locker/utils/snack_bar_utils.dart";+ import "package:locker/ui/components/subscription_required_dialog.dart";+ import "package:locker/ui/pages/account_credentials_page.dart";+ import "package:locker/ui/pages/base_info_page.dart";+ import "package:locker/ui/pages/emergency_contact_page.dart";+ import "package:locker/ui/pages/personal_note_page.dart";+ import "package:locker/ui/pages/physical_records_page.dart";import "package:logging/logging.dart";-/// Utility class for common file actions like edit, share, and delete+/// Utility class for common file actions like edit, share, delete, and favoritesclass FileActions {static final _logger = Logger("FileActions");