better curve animation for the PlayerBar

This commit is contained in:
Pato05 2024-04-29 16:42:40 +02:00
parent 415325ac94
commit f9389ef50d
No known key found for this signature in database
GPG key ID: F53CA394104BA0CB

View file

@ -159,8 +159,10 @@ class FancyScaffoldState extends State<FancyScaffold>
left: 0, left: 0,
key: const Key('player_bar'), key: const Key('player_bar'),
child: FadeTransition( child: FadeTransition(
opacity: Tween(begin: 1.0, end: 0.0) opacity: Tween(begin: 1.0, end: 0.0).animate(
.animate(dragController), CurvedAnimation(
parent: dragController,
curve: const Interval(0.0, 0.25))),
child: SizedBox( child: SizedBox(
height: widget.bottomPanelHeight, height: widget.bottomPanelHeight,
child: widget.bottomPanel), child: widget.bottomPanel),