From 72c391ebfce655da506e1343ab2676a123ab2097 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 8 May 2025 09:59:37 +0200 Subject: [PATCH] update timing --- .DS_Store | Bin 6148 -> 6148 bytes .../mih_package_components/mih_app.dart | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index 756a4c457e465495fa87e7b382d17889432a8c30..885d63f8c5548aaf1aad908ef436d07ca8106066 100644 GIT binary patch delta 70 zcmZoMXffDe%F4KNvKeckhGccMk%6(Hj)IAyL9LELwWW~(kZo*MTg%BIs;qAv6rY`w Zo0s1``5db}W6$PytP)I{**X650|3486r2D6 delta 69 zcmZoMXffDe%F4K7vKeckx with SingleTickerProviderStateMixin { Future _peakAnimation() async { int currentPage = widget.selectedbodyIndex; - double peakOffset = _pageController.position.viewportDimension * 0.05; + double peakOffset = _pageController.position.viewportDimension * 0.075; double currentOffset = _pageController.page! * _pageController.position.viewportDimension; int nextPage = currentPage + 1 < widget.appBody.length ? currentPage + 1 : currentPage; if (nextPage != currentPage) { - await Future.delayed(const Duration(milliseconds: 150)); + await Future.delayed(const Duration(milliseconds: 300)); await _pageController.animateTo( currentOffset + peakOffset, duration: const Duration(milliseconds: 300), curve: Curves.easeOut, ); + // await Future.delayed(const Duration(milliseconds: 100)); await _pageController.animateTo( currentPage * _pageController.position.viewportDimension, duration: const Duration(milliseconds: 300),