π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix cross fade animation in FileSelectionOverlayBar
ashilknf62f146e9619
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 3222a1cbd1..19d6bb98cf 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@@ -127,7 +127,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>return ValueListenableBuilder(valueListenable: _hasSelectedFilesNotifier,builder: (context, value, child) {- final crossFade = AnimatedCrossFade(+ return AnimatedCrossFade(firstCurve: Curves.easeInOutExpo,secondCurve: Curves.easeInOutExpo,sizeCurve: Curves.easeInOutExpo,@@ -135,47 +135,42 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar>? CrossFadeState.showFirst: CrossFadeState.showSecond,duration: const Duration(milliseconds: 400),- firstChild: Column(- mainAxisSize: MainAxisSize.min,- crossAxisAlignment: CrossAxisAlignment.end,- children: [- Padding(- padding: const EdgeInsets.only(right: 4),- child: SelectAllButton(- backgroundColor: widget.backgroundColor,- ),- ),- const SizedBox(height: 8),- Container(- decoration: BoxDecoration(- boxShadow: shadowFloatFaintLight,+ firstChild: boundaryWidget(+ position: BoundaryPosition.bottom,+ child: Column(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.end,+ children: [+ Padding(+ padding: const EdgeInsets.only(right: 4),+ child: SelectAllButton(+ backgroundColor: widget.backgroundColor,+ ),),- child: BottomActionBarWidget(- selectedFiles: widget.selectedFiles,- galleryType: _galleryType,- collection: widget.collection,- person: widget.person,- clusterID: widget.clusterID,- onCancel: () {- if (widget.selectedFiles.files.isNotEmpty) {- widget.selectedFiles.clearAll();- }- },- backgroundColor: widget.backgroundColor,+ const SizedBox(height: 8),+ Container(+ decoration: BoxDecoration(+ boxShadow: shadowFloatFaintLight,+ ),+ child: BottomActionBarWidget(+ selectedFiles: widget.selectedFiles,+ galleryType: _galleryType,+ collection: widget.collection,+ person: widget.person,+ clusterID: widget.clusterID,+ onCancel: () {+ if (widget.selectedFiles.files.isNotEmpty) {+ widget.selectedFiles.clearAll();+ }+ },+ backgroundColor: widget.backgroundColor,+ ),),- ),- ],+ ],+ ),),secondChild: const SizedBox(width: double.infinity),);-- // Only wrap with boundary widget when there are selected files- return _hasSelectedFilesNotifier.value- ? boundaryWidget(- position: BoundaryPosition.bottom,- child: crossFade,- )- : crossFade;},);}