Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix animation

AmanRajSinghMouryae569dedb6e77
diff --git a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart
index c6bc0f2e93..e855b2b25d 100644
--- a/mobile/apps/locker/lib/ui/pages/onboarding_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/onboarding_page.dart
@@ -163,6 +163,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
DotsIndicator(
dotsCount: _featureCount,
position: _activeDotIndex,
+ animate: true,
+ animationDuration:
+ const Duration(milliseconds: 300),
decorator: DotsDecorator(
activeColor: Colors.white,
color: Colors.white.withValues(alpha: 0.32),
@@ -176,11 +179,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
activeSize: const Size(20, 10),
spacing: const EdgeInsets.all(6),
),
- onTap: (index) {
- _autoScrollDisabled = true;
- _stopAutoScroll();
- _animateToFeature(index);
- },
+ onTap: _animateToFeature,
),
],
),