π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor: update UI components for improved layout and styling
AmanRajSinghMouryac9eb77b26284
diff --git a/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart b/mobile/apps/locker/lib/ui/components/file_restore_sheet.dartindex d2f2d90d8f..bb0d6b0476 100644--- a/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart+++ b/mobile/apps/locker/lib/ui/components/file_restore_sheet.dart@@ -84,7 +84,7 @@ class _FileRestoreDialogState extends State<FileRestoreDialog> {selectedCollectionIds: _selectedCollectionIds,onToggleCollection: _toggleCollection,onCollectionsUpdated: _onCollectionsUpdated,- title: context.l10n.collections,+ title: "",singleSelectionMode: true,),const SizedBox(height: 28),diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dartindex 9716bb7412..6cc0cc6d41 100644--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart@@ -734,22 +734,26 @@ class _FilterBottomSheet extends StatelessWidget {],),const SizedBox(height: 16),- ConstrainedBox(- constraints: const BoxConstraints(maxHeight: 200),- child: SingleChildScrollView(- child: Wrap(- spacing: 8,- runSpacing: 8,- children: chips.map((chip) {- return CollectionChip(- label: chip.label,- isSelected: chip.isSelected,- onTap: chip.onTap,- colorScheme: colorScheme,- textTheme: textTheme,- backgroundColor: colorScheme.backgroundElevated2,- );- }).toList(),+ ClipRRect(+ borderRadius: BorderRadius.circular(16),+ child: ConstrainedBox(+ constraints: const BoxConstraints(maxHeight: 200),+ child: SingleChildScrollView(+ padding: const EdgeInsets.only(bottom: 12),+ child: Wrap(+ spacing: 8,+ runSpacing: 8,+ children: chips.map((chip) {+ return CollectionChip(+ label: chip.label,+ isSelected: chip.isSelected,+ onTap: chip.onTap,+ colorScheme: colorScheme,+ textTheme: textTheme,+ backgroundColor: colorScheme.backgroundElevated2,+ );+ }).toList(),+ ),),),),diff --git a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dartindex db9ab35936..c016f545bc 100644--- a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart+++ b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart@@ -139,31 +139,34 @@ class _FileUploadScreenState extends State<FileUploadScreen> {borderRadius: BorderRadius.circular(24),),padding: const EdgeInsets.all(12),- child: ConstrainedBox(- constraints: BoxConstraints(- maxHeight:- _files.length > 5 ? 360 : _files.length * 84.0,- ),- child: ListView.separated(- shrinkWrap: true,- padding: EdgeInsets.zero,- physics: _files.length > 5- ? const BouncingScrollPhysics()- : const NeverScrollableScrollPhysics(),- itemCount: _files.length,- separatorBuilder: (context, index) =>- const SizedBox(height: 8),- itemBuilder: (context, index) {- return _buildFileItem(- _files[index],- colorScheme,- textTheme,- );- },+ child: ClipRRect(+ borderRadius: BorderRadius.circular(16),+ child: ConstrainedBox(+ constraints: BoxConstraints(+ maxHeight:+ _files.length > 5 ? 360 : _files.length * 84.0,+ ),+ child: ListView.separated(+ shrinkWrap: true,+ padding: EdgeInsets.zero,+ physics: _files.length > 5+ ? const BouncingScrollPhysics()+ : const NeverScrollableScrollPhysics(),+ itemCount: _files.length,+ separatorBuilder: (context, index) =>+ const SizedBox(height: 8),+ itemBuilder: (context, index) {+ return _buildFileItem(+ _files[index],+ colorScheme,+ textTheme,+ );+ },+ ),),),),- const SizedBox(height: 16),+ const SizedBox(height: 24),],TitleBarTitleWidget(title: context.l10n.collectionLabel,diff --git a/mobile/apps/locker/lib/ui/pages/personal_note_page.dart b/mobile/apps/locker/lib/ui/pages/personal_note_page.dartindex c0c8fa6f1d..a359afe6cd 100644--- a/mobile/apps/locker/lib/ui/pages/personal_note_page.dart+++ b/mobile/apps/locker/lib/ui/pages/personal_note_page.dart@@ -183,6 +183,7 @@ class _PersonalNotePageStateonCollectionsUpdated: updateAvailableCollections,title: showCollectionSelectionTitle ? context.l10n.collections : '',),+ const SizedBox(height: 80),],),);