π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix padding and filter logic
AmanRajSinghMouryaf67644d0cfe0
diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dartindex 6cc0cc6d41..ecba35143b 100644--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart@@ -148,8 +148,8 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {key: 'c_${collection.id}',label: _collectionLabel(collection),isSelected: _selectedCollections.contains(collection),- onTap: () {- _onCollectionSelected(collection);+ onTap: () async {+ await _onCollectionSelected(collection);setBottomSheetState(() {});},),@@ -169,8 +169,8 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {),);},- onClearAllFilters: () {- _clearAllFilters();+ onClearAllFilters: () async {+ await _clearAllFilters();setBottomSheetState(() {});},onClose: () => Navigator.pop(context),@@ -209,8 +209,8 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {);}- void _onCollectionSelected(Collection collection) {- HapticFeedback.lightImpact();+ Future<void> _onCollectionSelected(Collection collection) async {+ await HapticFeedback.lightImpact();setState(() {if (_selectedCollections.contains(collection)) {@@ -222,18 +222,18 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {}});- _updateFilteredFiles();+ await _updateFilteredFiles();}- void _clearAllFilters() {- HapticFeedback.lightImpact();+ Future<void> _clearAllFilters() async {+ await HapticFeedback.lightImpact();setState(() {_selectedCollections.clear();_selectionOrder.clear();});- _updateFilteredFiles();+ await _updateFilteredFiles();}void _handleCollectionUpdates() {diff --git a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dartindex c016f545bc..fdbbf9bc93 100644--- a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart+++ b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart@@ -84,7 +84,7 @@ class _FileUploadScreenState extends State<FileUploadScreen> {backgroundColor: colorScheme.backgroundBase,body: SafeArea(child: Padding(- padding: const EdgeInsets.symmetric(horizontal: 12),+ padding: const EdgeInsets.symmetric(horizontal: 16),child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dartindex 33154af77d..129d855f12 100644--- a/mobile/apps/locker/lib/ui/pages/home_page.dart+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart@@ -78,7 +78,7 @@ class CustomLockerAppBar extends StatelessWidgetchild: Column(children: [Padding(- padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 12),+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),child: Stack(alignment: Alignment.center,children: [