From f9389ef50d0d39fb4b6f3cfcf9196f6d9073b763 Mon Sep 17 00:00:00 2001 From: Pato05 Date: Mon, 29 Apr 2024 16:42:40 +0200 Subject: [PATCH] better curve animation for the PlayerBar --- lib/ui/fancy_scaffold.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ui/fancy_scaffold.dart b/lib/ui/fancy_scaffold.dart index fbb6f17..511ee8a 100644 --- a/lib/ui/fancy_scaffold.dart +++ b/lib/ui/fancy_scaffold.dart @@ -159,8 +159,10 @@ class FancyScaffoldState extends State left: 0, key: const Key('player_bar'), child: FadeTransition( - opacity: Tween(begin: 1.0, end: 0.0) - .animate(dragController), + opacity: Tween(begin: 1.0, end: 0.0).animate( + CurvedAnimation( + parent: dragController, + curve: const Interval(0.0, 0.25))), child: SizedBox( height: widget.bottomPanelHeight, child: widget.bottomPanel),