Shorten tab transition

This commit is contained in:
Ming Ming 2022-01-24 18:05:35 +08:00
parent d21e23c219
commit 8b075453db
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -167,7 +167,7 @@ class _HomeState extends State<Home> with TickerProviderStateMixin {
int _nextPage = 0;
late final _animationController = AnimationController(
duration: k.animationDurationLong,
duration: k.animationDurationTabTransition,
vsync: this,
);
late final _animation = CurvedAnimation(