Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][locker] Add collection filter bottom sheet and UI improvements

AmanRajSinghMourya9653eebc4799
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb
index afec68a735..3470d1df0f 100644
--- a/mobile/apps/locker/lib/l10n/app_en.arb
+++ b/mobile/apps/locker/lib/l10n/app_en.arb
@@ -210,6 +210,7 @@
"noCollectionsFound": "No collections found",
"createYourFirstCollection": "Create your first collection to get started",
"createCollection": "Create collection",
+ "enterCollectionName": "Enter collection name",
"nothingYet": "Nothing yet",
"uploadYourFirstDocument": "Upload your first document to get started",
"collectionEmptyStateTitle": "Nothing to see here",
@@ -697,7 +698,7 @@
}
},
"addToCollection": "Add to collection",
- "newCollection": "New collection",
+ "newCollection": "New Collection",
"title": "Title",
"editItem": "Edit item",
"enterNewTitle": "Enter a new title",
@@ -902,7 +903,7 @@
"subscriptionRequiredForSharing": "You need a paid subscription to share links",
"sessionExpired": "Session expired",
"pleaseLoginAgain": "Please login again",
- "language": "Language",
- "selectLanguage": "Select language",
- "general": "General"
+ "filters": "Filters",
+ "seeAllCollections": "See all collections",
+ "clearAllFilters": "Clear all filters"
}
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index a731cb7773..ce41ca4803 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -472,6 +472,12 @@ abstract class AppLocalizations {
/// **'Create collection'**
String get createCollection;
+ /// No description provided for @enterCollectionName.
+ ///
+ /// In en, this message translates to:
+ /// **'Enter collection name'**
+ String get enterCollectionName;
+
/// No description provided for @nothingYet.
///
/// In en, this message translates to:
@@ -2203,7 +2209,7 @@ abstract class AppLocalizations {
/// No description provided for @newCollection.
///
/// In en, this message translates to:
- /// **'New collection'**
+ /// **'New Collection'**
String get newCollection;
/// No description provided for @title.
@@ -2662,23 +2668,23 @@ abstract class AppLocalizations {
/// **'Please login again'**
String get pleaseLoginAgain;
- /// No description provided for @language.
+ /// No description provided for @filters.
///
/// In en, this message translates to:
- /// **'Language'**
- String get language;
+ /// **'Filters'**
+ String get filters;
- /// No description provided for @selectLanguage.
+ /// No description provided for @seeAllCollections.
///
/// In en, this message translates to:
- /// **'Select language'**
- String get selectLanguage;
+ /// **'See all collections'**
+ String get seeAllCollections;
- /// No description provided for @general.
+ /// No description provided for @clearAllFilters.
///
/// In en, this message translates to:
- /// **'General'**
- String get general;
+ /// **'Clear all filters'**
+ String get clearAllFilters;
}
class _AppLocalizationsDelegate
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index 75c3643546..8414788690 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -234,6 +234,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get createCollection => 'Create collection';
+ @override
+ String get enterCollectionName => 'Enter collection name';
+
@override
String get nothingYet => 'Nothing yet';
@@ -1244,7 +1247,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get addToCollection => 'Add to collection';
@override
- String get newCollection => 'New collection';
+ String get newCollection => 'New Collection';
@override
String get title => 'Title';
@@ -1553,11 +1556,11 @@ class AppLocalizationsEn extends AppLocalizations {
String get pleaseLoginAgain => 'Please login again';
@override
- String get language => 'Language';
+ String get filters => 'Filters';
@override
- String get selectLanguage => 'Select language';
+ String get seeAllCollections => 'See all collections';
@override
- String get general => 'General';
+ String get clearAllFilters => 'Clear all filters';
}
diff --git a/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart b/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
index 04fcb0cde5..029f74bfde 100644
--- a/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
@@ -1,6 +1,5 @@
import "package:ente_base/typedefs.dart";
-import "package:ente_ui/components/close_icon_button.dart";
-import "package:ente_ui/components/title_bar_title_widget.dart";
+import "package:ente_ui/components/base_bottom_sheet.dart";
import "package:ente_ui/theme/ente_theme.dart";
import "package:flutter/material.dart";
import "package:locker/ui/components/gradient_button.dart";
@@ -91,78 +90,58 @@ class _InputDialogSheetState extends State<InputDialogSheet> {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
- return SizedBox(
- width: 360,
- child: Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 24,
- vertical: 24,
- ),
- child: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- TitleBarTitleWidget(
- title: widget.title,
- ),
- CloseIconButton(
- backgroundColor: colorScheme.backgroundElevated,
- ),
- ],
+ return Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const SizedBox(height: 16),
+ TextField(
+ controller: _textController,
+ autofocus: true,
+ textCapitalization: widget.textCapitalization,
+ maxLength: widget.maxLength,
+ decoration: InputDecoration(
+ hintText: widget.hintText,
+ hintStyle: textTheme.body.copyWith(
+ color: colorScheme.textMuted,
),
- const SizedBox(height: 24),
- TextField(
- controller: _textController,
- autofocus: true,
- textCapitalization: widget.textCapitalization,
- maxLength: widget.maxLength,
- decoration: InputDecoration(
- hintText: widget.hintText,
- hintStyle: textTheme.body.copyWith(
- color: colorScheme.textMuted,
- ),
- filled: true,
- fillColor: colorScheme.fillFaint,
- contentPadding: const EdgeInsets.symmetric(
- horizontal: 16,
- vertical: 16,
- ),
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(16),
- borderSide: BorderSide.none,
- ),
- focusedBorder: OutlineInputBorder(
- borderRadius: BorderRadius.circular(16),
- borderSide: BorderSide(
- color: colorScheme.strokeFaint,
- ),
- ),
- counterText: "",
- ),
- style: textTheme.body.copyWith(
- color: colorScheme.textBase,
- ),
- onSubmitted: (_) => _onSubmit(),
+ filled: true,
+ fillColor: colorScheme.fillFaint,
+ contentPadding: const EdgeInsets.symmetric(
+ horizontal: 16,
+ vertical: 16,
+ ),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(16),
+ borderSide: BorderSide.none,
),
- const SizedBox(height: 36),
- SizedBox(
- width: double.infinity,
- child: GradientButton(
- onTap: !_isInputValid || _isSubmitting ? null : _onSubmit,
- text: widget.submitButtonLabel,
+ focusedBorder: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(16),
+ borderSide: BorderSide(
+ color: colorScheme.strokeFaint,
),
),
- ],
+ counterText: "",
+ ),
+ style: textTheme.body.copyWith(
+ color: colorScheme.textBase,
+ ),
+ onSubmitted: (_) => _onSubmit(),
),
- ),
+ const SizedBox(height: 24),
+ SizedBox(
+ width: double.infinity,
+ child: GradientButton(
+ onTap: !_isInputValid || _isSubmitting ? null : _onSubmit,
+ text: widget.submitButtonLabel,
+ ),
+ ),
+ ],
);
}
}
-Future<dynamic> showInputDialogSheet(
+Future<dynamic> showInputSheet(
BuildContext context, {
required String title,
required String hintText,
@@ -172,31 +151,19 @@ Future<dynamic> showInputDialogSheet(
TextCapitalization textCapitalization = TextCapitalization.words,
int? maxLength = 200,
}) async {
- final result = await showDialog<dynamic>(
- context: context,
- builder: (dialogContext) {
- final colorScheme = getEnteColorScheme(dialogContext);
- return Dialog(
- backgroundColor: colorScheme.backgroundElevated2,
- clipBehavior: Clip.antiAlias,
- insetPadding: const EdgeInsets.symmetric(
- horizontal: 24,
- vertical: 24,
- ),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(24),
- ),
- child: InputDialogSheet(
- title: title,
- hintText: hintText,
- submitButtonLabel: submitButtonLabel,
- onSubmit: onSubmit,
- initialValue: initialValue,
- textCapitalization: textCapitalization,
- maxLength: maxLength,
- ),
- );
- },
+ final result = await showBaseBottomSheet<dynamic>(
+ context,
+ title: title,
+ isKeyboardAware: true,
+ child: InputDialogSheet(
+ title: title,
+ hintText: hintText,
+ submitButtonLabel: submitButtonLabel,
+ onSubmit: onSubmit,
+ initialValue: initialValue,
+ textCapitalization: textCapitalization,
+ maxLength: maxLength,
+ ),
);
return result;
diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
index 4f1f1cc51f..ad44c4507a 100644
--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
@@ -1,3 +1,4 @@
+import "package:ente_ui/components/close_icon_button.dart";
import "package:ente_ui/theme/colors.dart";
import 'package:ente_ui/theme/ente_theme.dart';
import "package:ente_ui/theme/text_style.dart";
@@ -11,6 +12,7 @@ import 'package:locker/services/collections/models/collection.dart';
import 'package:locker/services/files/sync/models/file.dart';
import "package:locker/ui/components/empty_state_widget.dart";
import 'package:locker/ui/components/item_list_view.dart';
+import 'package:locker/ui/pages/all_collections_page.dart';
class RecentsSectionWidget extends StatefulWidget {
final List<Collection> collections;
@@ -104,6 +106,59 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {
chips: chipModels,
showClearButton: false,
onClearTapped: _clearAllFilters,
+ onFilterIconTapped: () => _showFilterBottomSheet(context),
+ );
+ }
+
+ void _showFilterBottomSheet(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
+ final textTheme = getEnteTextTheme(context);
+
+ showModalBottomSheet(
+ context: context,
+ isScrollControlled: true,
+ backgroundColor: Colors.transparent,
+ barrierColor: Colors.black.withValues(alpha: 0.4),
+ builder: (bottomSheetContext) {
+ return StatefulBuilder(
+ builder: (context, setBottomSheetState) {
+ final orderedFilters = _getOrderedCollections();
+ final chipModels = orderedFilters
+ .map(
+ (collection) => _FilterChipViewModel(
+ key: 'c_${collection.id}',
+ label: _collectionLabel(collection),
+ isSelected: _selectedCollections.contains(collection),
+ onTap: () {
+ _onCollectionSelected(collection);
+ setBottomSheetState(() {});
+ },
+ ),
+ )
+ .toList();
+
+ return _FilterBottomSheet(
+ chips: chipModels,
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ hasActiveFilters: _hasActiveFilters,
+ onSeeAllCollections: () {
+ Navigator.push(
+ context,
+ MaterialPageRoute(
+ builder: (context) => const AllCollectionsPage(),
+ ),
+ );
+ },
+ onClearAllFilters: () {
+ _clearAllFilters();
+ setBottomSheetState(() {});
+ },
+ onClose: () => Navigator.pop(context),
+ );
+ },
+ );
+ },
);
}
@@ -404,11 +459,13 @@ class _FilterChipsRow extends StatelessWidget {
required this.chips,
required this.showClearButton,
required this.onClearTapped,
+ required this.onFilterIconTapped,
});
final List<_FilterChipViewModel> chips;
final bool showClearButton;
final VoidCallback onClearTapped;
+ final VoidCallback onFilterIconTapped;
@override
Widget build(BuildContext context) {
@@ -417,9 +474,14 @@ class _FilterChipsRow extends StatelessWidget {
final textTheme = getEnteTextTheme(context);
return SizedBox(
- height: 48,
+ height: 44,
child: Row(
children: [
+ _FilterIconButton(
+ onTap: onFilterIconTapped,
+ colorScheme: colorScheme,
+ ),
+ const SizedBox(width: 8),
Expanded(
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
@@ -438,6 +500,7 @@ class _FilterChipsRow extends StatelessWidget {
onTap: chip.onTap,
colorScheme: colorScheme,
textTheme: textTheme,
+ backgroundColor: colorScheme.backdropBase,
),
);
},
@@ -483,6 +546,38 @@ class _FilterChipsRow extends StatelessWidget {
}
}
+class _FilterIconButton extends StatelessWidget {
+ const _FilterIconButton({
+ required this.onTap,
+ required this.colorScheme,
+ });
+
+ final VoidCallback onTap;
+ final EnteColorScheme colorScheme;
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: onTap,
+ child: Container(
+ width: 44,
+ height: 44,
+ decoration: BoxDecoration(
+ color: colorScheme.backdropBase,
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: Center(
+ child: HugeIcon(
+ icon: HugeIcons.strokeRoundedFilterHorizontal,
+ color: colorScheme.textMuted,
+ size: 20,
+ ),
+ ),
+ ),
+ );
+ }
+}
+
class _FilterChip extends StatelessWidget {
const _FilterChip({
required this.label,
@@ -490,6 +585,7 @@ class _FilterChip extends StatelessWidget {
required this.onTap,
required this.colorScheme,
required this.textTheme,
+ required this.backgroundColor,
});
final String label;
@@ -497,6 +593,7 @@ class _FilterChip extends StatelessWidget {
final VoidCallback onTap;
final EnteColorScheme colorScheme;
final EnteTextTheme textTheme;
+ final Color backgroundColor;
@override
Widget build(BuildContext context) {
@@ -510,9 +607,8 @@ class _FilterChip extends StatelessWidget {
constraints: const BoxConstraints(minHeight: 40),
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
decoration: BoxDecoration(
- color:
- isSelected ? colorScheme.primary700 : colorScheme.backdropBase,
- borderRadius: const BorderRadius.all(Radius.circular(24.0)),
+ color: isSelected ? colorScheme.primary700 : backgroundColor,
+ borderRadius: BorderRadius.circular(16),
),
child: Row(
mainAxisSize: MainAxisSize.min,
@@ -567,12 +663,12 @@ class _FilterClearButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final accentColor = colorScheme.warning500;
- final backgroundColor = accentColor.withOpacity(0.12);
+ final backgroundColor = accentColor.withValues(alpha: 0.12);
return GestureDetector(
onTap: onTap,
child: Container(
- constraints: const BoxConstraints(minHeight: 48),
+ constraints: const BoxConstraints(minHeight: 44),
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
decoration: BoxDecoration(
color: backgroundColor,
@@ -600,3 +696,157 @@ class _FilterClearButton extends StatelessWidget {
);
}
}
+
+class _FilterBottomSheet extends StatelessWidget {
+ const _FilterBottomSheet({
+ required this.chips,
+ required this.colorScheme,
+ required this.textTheme,
+ required this.hasActiveFilters,
+ required this.onSeeAllCollections,
+ required this.onClearAllFilters,
+ required this.onClose,
+ });
+
+ final List<_FilterChipViewModel> chips;
+ final EnteColorScheme colorScheme;
+ final EnteTextTheme textTheme;
+ final bool hasActiveFilters;
+ final VoidCallback onSeeAllCollections;
+ final VoidCallback onClearAllFilters;
+ final VoidCallback onClose;
+
+ @override
+ Widget build(BuildContext context) {
+ return Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 8),
+ child: Row(
+ children: [
+ _ActionPillButton(
+ label: context.l10n.seeAllCollections,
+ onTap: onSeeAllCollections,
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ const Spacer(),
+ _ActionPillButton(
+ label: context.l10n.clearAllFilters,
+ onTap: onClearAllFilters,
+ showCloseIcon: true,
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ ),
+ ],
+ ),
+ ),
+ Container(
+ decoration: BoxDecoration(
+ color: colorScheme.backdropBase.withValues(alpha: 1.0),
+ borderRadius: const BorderRadius.only(
+ topLeft: Radius.circular(20),
+ topRight: Radius.circular(20),
+ ),
+ border: Border(
+ top: BorderSide(color: colorScheme.strokeFaint),
+ ),
+ ),
+ child: SafeArea(
+ top: false,
+ child: Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ context.l10n.filters,
+ style: textTheme.largeBold,
+ ),
+ const CloseIconButton(),
+ ],
+ ),
+ const SizedBox(height: 16),
+ ConstrainedBox(
+ constraints: const BoxConstraints(maxHeight: 200),
+ child: SingleChildScrollView(
+ child: Wrap(
+ spacing: 8,
+ runSpacing: 8,
+ children: chips.map((chip) {
+ return _FilterChip(
+ label: chip.label,
+ isSelected: chip.isSelected,
+ onTap: chip.onTap,
+ colorScheme: colorScheme,
+ textTheme: textTheme,
+ backgroundColor: colorScheme.backgroundElevated2,
+ );
+ }).toList(),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ],
+ );
+ }
+}
+
+class _ActionPillButton extends StatelessWidget {
+ const _ActionPillButton({
+ required this.label,
+ 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;
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: onTap,
+ child: Container(
+ decoration: BoxDecoration(
+ color: colorScheme.backgroundElevated2,
+ borderRadius: BorderRadius.circular(50),
+ ),
+ padding: const EdgeInsets.symmetric(
+ horizontal: 12.0,
+ vertical: 10.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,
+ ),
+ ],
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
index 22f222cc33..2b84e7425a 100644
--- a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart
@@ -14,6 +14,7 @@ import 'package:locker/services/collections/models/collection.dart';
import "package:locker/ui/components/empty_state_widget.dart";
import 'package:locker/ui/components/item_list_view.dart';
import 'package:locker/ui/pages/collection_page.dart';
+import "package:locker/utils/collection_actions.dart";
import 'package:locker/utils/collection_sort_util.dart';
import 'package:logging/logging.dart';
@@ -166,6 +167,7 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
Widget _buildBody(BuildContext context) {
final textTheme = getEnteTextTheme(context);
+ final colorScheme = getEnteColorScheme(context);
final safeBottomInset = MediaQuery.of(context).padding.bottom;
final bottomPadding = safeBottomInset + 24.0;
@@ -234,12 +236,41 @@ class _AllCollectionsPageState extends State<AllCollectionsPage> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- TitleBarTitleWidget(
- title: _getTitle(context),
- ),
- Text(
- _sortedCollections.length.toString() + " items",
- style: textTheme.smallMuted,
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ TitleBarTitleWidget(
+ title: _getTitle(context),
+ ),
+ Text(
+ _sortedCollections.length.toString() + " items",
+ style: textTheme.smallMuted,
+ ),
+ ],
+ ),
+ GestureDetector(
+ onTap: () async {
+ await CollectionActions.createCollection(context);
+ },
+ child: Container(
+ height: 44,
+ width: 44,
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(12),
+ color: colorScheme.backdropBase,
+ ),
+ padding: const EdgeInsets.all(12),
+ child: HugeIcon(
+ icon: HugeIcons.strokeRoundedAdd01,
+ color: colorScheme.textBase,
+ ),
+ ),
+ ),
+ ],
),
const SizedBox(height: 20),
Expanded(
diff --git a/mobile/apps/locker/lib/ui/pages/collection_page.dart b/mobile/apps/locker/lib/ui/pages/collection_page.dart
index 664ab0b345..f16d9808a5 100644
--- a/mobile/apps/locker/lib/ui/pages/collection_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/collection_page.dart
@@ -282,8 +282,8 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
return GestureDetector(
onTap: _shareCollection,
child: Container(
- height: 48,
- width: 48,
+ height: 44,
+ width: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: colorScheme.backdropBase,
@@ -315,8 +315,8 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
constraints: const BoxConstraints(minWidth: 120),
offset: const Offset(-36, 36),
child: Container(
- height: 48,
- width: 48,
+ height: 44,
+ width: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: colorScheme.backdropBase,
diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dart
index f017c9f7b6..8298fc0bae 100644
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@ -243,8 +243,8 @@ class _TrashPageState extends State<TrashPage> {
await _emptyTrash();
},
child: Container(
- height: 48,
- width: 48,
+ height: 44,
+ width: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: colorScheme.backdropBase,
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
index 83d44881eb..29bcc1ff56 100644
--- a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
+++ b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
@@ -77,8 +77,8 @@ class _CollectionSelectionOverlayBarState
decoration: BoxDecoration(
color: colorScheme.backdropBase,
borderRadius: const BorderRadius.only(
- topLeft: Radius.circular(16),
- topRight: Radius.circular(16),
+ topLeft: Radius.circular(20),
+ topRight: Radius.circular(20),
),
border: Border(
top: BorderSide(color: colorScheme.strokeFaint),
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.dart
index d4e85f853d..5d9fb7d51e 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
@@ -81,8 +81,8 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
decoration: BoxDecoration(
color: colorScheme.backdropBase,
borderRadius: const BorderRadius.only(
- topLeft: Radius.circular(16),
- topRight: Radius.circular(16),
+ topLeft: Radius.circular(20),
+ topRight: Radius.circular(20),
),
border: Border(
top: BorderSide(color: colorScheme.strokeFaint),
diff --git a/mobile/apps/locker/lib/utils/collection_actions.dart b/mobile/apps/locker/lib/utils/collection_actions.dart
index 7ee898c59e..9a8d2abcc2 100644
--- a/mobile/apps/locker/lib/utils/collection_actions.dart
+++ b/mobile/apps/locker/lib/utils/collection_actions.dart
@@ -36,11 +36,11 @@ class CollectionActions {
}) async {
Collection? createdCollection;
- final result = await showInputDialogSheet(
+ final result = await showInputSheet(
context,
- title: context.l10n.createCollection,
- hintText: context.l10n.documentsHint,
- submitButtonLabel: context.l10n.create,
+ title: context.l10n.newCollection,
+ hintText: context.l10n.enterCollectionName,
+ submitButtonLabel: context.l10n.createCollection,
onSubmit: (String text) async {
if (text.trim().isEmpty) {
return;
@@ -77,7 +77,7 @@ class CollectionActions {
Collection collection, {
VoidCallback? onSuccess,
}) async {
- await showInputDialogSheet(
+ await showInputSheet(
context,
title: context.l10n.renameCollection,
initialValue: collection.name ?? '',