High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): fast animations when "disable animations" enabled (#21309)
Yarose2169f531613
diff --git a/mobile/lib/widgets/common/mesmerizing_sliver_app_bar.dart b/mobile/lib/widgets/common/mesmerizing_sliver_app_bar.dartindex 359b400456..73dbbfc85b 100644--- a/mobile/lib/widgets/common/mesmerizing_sliver_app_bar.dart+++ b/mobile/lib/widgets/common/mesmerizing_sliver_app_bar.dart@@ -272,9 +272,17 @@ class _RandomAssetBackgroundState extends State<_RandomAssetBackground> with Ticvoid initState() {super.initState();- _zoomController = AnimationController(duration: const Duration(seconds: 12), vsync: this);+ _zoomController = AnimationController(+ duration: const Duration(seconds: 12),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );- _crossFadeController = AnimationController(duration: const Duration(milliseconds: 1200), vsync: this);+ _crossFadeController = AnimationController(+ duration: const Duration(milliseconds: 1200),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );_zoomAnimation = Tween<double>(begin: 1.0,diff --git a/mobile/lib/widgets/common/person_sliver_app_bar.dart b/mobile/lib/widgets/common/person_sliver_app_bar.dartindex 1cc117139d..0f9555a101 100644--- a/mobile/lib/widgets/common/person_sliver_app_bar.dart+++ b/mobile/lib/widgets/common/person_sliver_app_bar.dart@@ -378,9 +378,17 @@ class _RandomAssetBackgroundState extends State<_RandomAssetBackground> with Ticvoid initState() {super.initState();- _zoomController = AnimationController(duration: const Duration(seconds: 12), vsync: this);+ _zoomController = AnimationController(+ duration: const Duration(seconds: 12),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );- _crossFadeController = AnimationController(duration: const Duration(milliseconds: 1200), vsync: this);+ _crossFadeController = AnimationController(+ duration: const Duration(milliseconds: 1200),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );_zoomAnimation = Tween<double>(begin: 1.0,diff --git a/mobile/lib/widgets/common/remote_album_sliver_app_bar.dart b/mobile/lib/widgets/common/remote_album_sliver_app_bar.dartindex 54497a10de..f9768d575e 100644--- a/mobile/lib/widgets/common/remote_album_sliver_app_bar.dart+++ b/mobile/lib/widgets/common/remote_album_sliver_app_bar.dart@@ -378,9 +378,17 @@ class _RandomAssetBackgroundState extends State<_RandomAssetBackground> with Ticvoid initState() {super.initState();- _zoomController = AnimationController(duration: const Duration(seconds: 12), vsync: this);+ _zoomController = AnimationController(+ duration: const Duration(seconds: 12),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );- _crossFadeController = AnimationController(duration: const Duration(milliseconds: 1200), vsync: this);+ _crossFadeController = AnimationController(+ duration: const Duration(milliseconds: 1200),+ vsync: this,+ animationBehavior: AnimationBehavior.preserve,+ );_zoomAnimation = Tween<double>(begin: 1.0,