better curve animation for the PlayerBar
This commit is contained in:
parent
415325ac94
commit
f9389ef50d
|
|
@ -159,8 +159,10 @@ class FancyScaffoldState extends State<FancyScaffold>
|
|||
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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue