diff --git a/lib/k.dart b/lib/k.dart index ad923f3f..5b5403f7 100644 --- a/lib/k.dart +++ b/lib/k.dart @@ -17,6 +17,9 @@ const animationDurationNormal = Duration(milliseconds: 250); /// Duration for long animation const animationDurationLong = Duration(milliseconds: 500); +/// Duration for tab transition animation +const animationDurationTabTransition = Duration(milliseconds: 400); + /// Size of the photo/video thumbnails /// /// It's advisable to use a single size to minimize cache size diff --git a/lib/widget/home.dart b/lib/widget/home.dart index 6705aa19..523e629e 100644 --- a/lib/widget/home.dart +++ b/lib/widget/home.dart @@ -167,7 +167,7 @@ class _HomeState extends State with TickerProviderStateMixin { int _nextPage = 0; late final _animationController = AnimationController( - duration: k.animationDurationLong, + duration: k.animationDurationTabTransition, vsync: this, ); late final _animation = CurvedAnimation(