Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: preserve animations

Prateek Sunal85bea417a154
diff --git a/mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart b/mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart
index e28f79273e..800187e151 100644
--- a/mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart
+++ b/mobile/apps/photos/lib/ui/common/linear_progress_dialog.dart
@@ -25,6 +25,7 @@ class LinearProgressDialogState extends State<LinearProgressDialog>
controller = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 300),
+ animationBehavior: AnimationBehavior.preserve,
);
_tween = Tween<double>(begin: _target, end: _target);
diff --git a/mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart b/mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart
index 4c9186fc26..0770d6bd0d 100644
--- a/mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart
+++ b/mobile/apps/photos/lib/ui/huge_listview/draggable_scrollbar.dart
@@ -75,6 +75,7 @@ class DraggableScrollbarState extends State<DraggableScrollbar>
_thumbAnimationController = AnimationController(
vsync: this,
duration: thumbAnimationDuration,
+ animationBehavior: AnimationBehavior.preserve,
);
_thumbAnimation = CurvedAnimation(
@@ -85,6 +86,7 @@ class DraggableScrollbarState extends State<DraggableScrollbar>
_labelAnimationController = AnimationController(
vsync: this,
duration: labelAnimationDuration,
+ animationBehavior: AnimationBehavior.preserve,
);
_labelAnimation = CurvedAnimation(
diff --git a/mobile/apps/photos/lib/ui/tabs/nav_bar.dart b/mobile/apps/photos/lib/ui/tabs/nav_bar.dart
index e5f0d22c2d..7f7418f4d4 100644
--- a/mobile/apps/photos/lib/ui/tabs/nav_bar.dart
+++ b/mobile/apps/photos/lib/ui/tabs/nav_bar.dart
@@ -291,9 +291,11 @@ class _ButtonState extends State<Button> with TickerProviderStateMixin {
void initState() {
super.initState();
_expanded = widget.active;
- expandController =
- AnimationController(vsync: this, duration: widget.duration)
- ..addListener(() => setState(() {}));
+ expandController = AnimationController(
+ vsync: this,
+ duration: widget.duration,
+ animationBehavior: AnimationBehavior.preserve,
+ )..addListener(() => setState(() {}));
}
@override
diff --git a/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
index 7a1be9dc25..e302c1a543 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
@@ -32,6 +32,7 @@ class _SeekBarState extends State<SeekBar> with SingleTickerProviderStateMixin {
_animationController = AnimationController(
vsync: this,
+ animationBehavior: AnimationBehavior.preserve,
value: 0,
);
diff --git a/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart b/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
index 910dd70d26..a793303888 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
@@ -65,10 +65,12 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
_slideController = AnimationController(
duration: const Duration(milliseconds: 300),
vsync: this,
+ animationBehavior: AnimationBehavior.preserve,
);
_fadeController = AnimationController(
duration: const Duration(milliseconds: 200),
vsync: this,
+ animationBehavior: AnimationBehavior.preserve,
);
_slideAnimation = Tween<Offset>(