π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][locker] Improve filter bottom sheet CTAs and rename Save to Download
AmanRajSinghMourya60494eaf1de0
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arbindex f287726095..51f7443235 100644--- a/mobile/apps/locker/lib/l10n/app_en.arb+++ b/mobile/apps/locker/lib/l10n/app_en.arb@@ -198,6 +198,7 @@"create": "Create","renameCollection": "Rename collection","save": "Save",+ "download": "Download","deleteFile": "Delete item","deleteFileConfirmation": "Are you sure you want to delete \"{fileName}\"?","@deleteFileConfirmation": {@@ -907,8 +908,8 @@"sessionExpired": "Session expired","pleaseLoginAgain": "Please login again","filters": "Filters",- "seeAllCollections": "See all collections",- "clearAllFilters": "Clear all filters",+ "seeAllCollections": "All collections",+ "clearAllFilters": "Clear all","selectLanguage": "Select language","general": "General","language": "Language",diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dartindex 0cef3b8d0b..af4ebd8506 100644--- a/mobile/apps/locker/lib/l10n/app_localizations.dart+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart@@ -454,6 +454,12 @@ abstract class AppLocalizations {/// **'Save'**String get save;+ /// No description provided for @download.+ ///+ /// In en, this message translates to:+ /// **'Download'**+ String get download;+/// No description provided for @deleteFile.////// In en, this message translates to:@@ -2695,13 +2701,13 @@ abstract class AppLocalizations {/// No description provided for @seeAllCollections.////// In en, this message translates to:- /// **'See all collections'**+ /// **'All collections'**String get seeAllCollections;/// No description provided for @clearAllFilters.////// In en, this message translates to:- /// **'Clear all filters'**+ /// **'Clear all'**String get clearAllFilters;/// No description provided for @selectLanguage.diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dartindex 0e1d9a5218..af11780d1e 100644--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart@@ -222,6 +222,9 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get save => 'Save';+ @override+ String get download => 'Download';+@overrideString get deleteFile => 'Delete item';@@ -1568,10 +1571,10 @@ class AppLocalizationsEn extends AppLocalizations {String get filters => 'Filters';@override- String get seeAllCollections => 'See all collections';+ String get seeAllCollections => 'All collections';@override- String get clearAllFilters => 'Clear all filters';+ String get clearAllFilters => 'Clear all';@overrideString get selectLanguage => 'Select language';diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dartindex ecba35143b..88bf270360 100644--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart@@ -697,7 +697,6 @@ class _FilterBottomSheet extends StatelessWidget {_ActionPillButton(label: context.l10n.clearAllFilters,onTap: onClearAllFilters,- showCloseIcon: true,colorScheme: colorScheme,textTheme: textTheme,),@@ -773,14 +772,12 @@ class _ActionPillButton extends StatelessWidget {required this.onTap,required this.colorScheme,required this.textTheme,- this.showCloseIcon = false,});final String label;final VoidCallback onTap;final EnteColorScheme colorScheme;final EnteTextTheme textTheme;- final bool showCloseIcon;@overrideWidget build(BuildContext context) {@@ -790,27 +787,18 @@ class _ActionPillButton extends StatelessWidget {decoration: BoxDecoration(color: colorScheme.backgroundElevated2,borderRadius: BorderRadius.circular(50),+ border: Border.all(+ color: colorScheme.strokeFaint,+ width: 1,+ ),),padding: const EdgeInsets.symmetric(horizontal: 12.0,- vertical: 10.0,+ vertical: 8.0,),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- Text(- label,- style: textTheme.small,- ),- if (showCloseIcon) ...[- const SizedBox(width: 6),- Icon(- Icons.close,- color: colorScheme.textBase,- size: 20,- ),- ],- ],+ child: Text(+ label,+ style: textTheme.small,),),);diff --git a/mobile/apps/locker/lib/ui/sharing/add_email_bottom_sheet.dart b/mobile/apps/locker/lib/ui/sharing/add_email_bottom_sheet.dartindex 194eba968d..591285d6e3 100644--- a/mobile/apps/locker/lib/ui/sharing/add_email_bottom_sheet.dart+++ b/mobile/apps/locker/lib/ui/sharing/add_email_bottom_sheet.dart@@ -55,7 +55,8 @@ class _AddEmailSheetState extends State<AddEmailSheet> {bool _emailIsValid = false;DateTime? _scheduledDate;TimeOfDay? _scheduledTime;- final CollectionParticipantRole _selectedRole = CollectionParticipantRole.viewer;+ final CollectionParticipantRole _selectedRole =+ CollectionParticipantRole.viewer;final _textController = TextEditingController();final _textFieldFocusNode = FocusNode();diff --git a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dartindex f7b94cbf3a..4d29e12fbb 100644--- a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart+++ b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart@@ -349,7 +349,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {hugeIcon: const HugeIcon(icon: HugeIcons.strokeRoundedDownload01,),- label: context.l10n.save,+ label: context.l10n.download,onTap: () => isSingleSelection? _downloadFile(context, file!): _downloadMultipleFiles(context, files),