mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 10:28:50 +01:00
Shorten tab transition
This commit is contained in:
parent
d21e23c219
commit
8b075453db
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue