π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix auto-scroll not working on entering FileSelectionOverlayBar's boundary
ashilkn71acf418cb38
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dartindex 19d6bb98cf..2f93d293fd 100644--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_overlay_bar.dart@@ -49,6 +49,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>SearchFilterDataProvider? _searchFilterDataProvider;bool? _galleryInitialFilterStillApplied;bool _wasEmpty = true;+ static const Duration animationDuration = Duration(milliseconds: 400);@overridevoid initState() {@@ -134,7 +135,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>crossFadeState: _hasSelectedFilesNotifier.value? CrossFadeState.showFirst: CrossFadeState.showSecond,- duration: const Duration(milliseconds: 400),+ duration: _FileSelectionOverlayBarState.animationDuration,firstChild: boundaryWidget(position: BoundaryPosition.bottom,child: Column(@@ -180,14 +181,17 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>}void _boundaryUpdateListener() {- final isEmpty = widget.selectedFiles.files.isEmpty;+ // Update boundary after animation completes+ Future.delayed(_FileSelectionOverlayBarState.animationDuration, () {+ final isEmpty = widget.selectedFiles.files.isEmpty;- // Only report boundary on empty β non-empty transitions- if (_wasEmpty != isEmpty) {- // Report boundary - will set to null if widget is not visible- reportBoundary(BoundaryPosition.bottom);- _wasEmpty = isEmpty;- }+ // Only report boundary on empty β non-empty transitions+ if (_wasEmpty != isEmpty) {+ // Report boundary - will set to null if widget is not visible+ reportBoundary(BoundaryPosition.bottom);+ _wasEmpty = isEmpty;+ }+ });}void _filterAppliedListener() {