From 09243722d61bf69b85e5d4b62bf820a2bbc26d9e Mon Sep 17 00:00:00 2001 From: peterscodee <8vsxdxd@gmail.com> Date: Mon, 3 Aug 2020 15:09:25 +0200 Subject: [PATCH] change method name --- lib/miniplayer.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/miniplayer.dart b/lib/miniplayer.dart index 146744a..2ebd33b 100644 --- a/lib/miniplayer.dart +++ b/lib/miniplayer.dart @@ -90,7 +90,7 @@ class _MiniplayerState extends State with TickerProviderStateMixin { children: [ if (_percentage > 0) GestureDetector( - onTap: () => animateToHeight(widget.minHeight), + onTap: () => _animateToHeight(widget.minHeight), child: Opacity( opacity: _percentage, child: Container(color: widget.backgroundColor), @@ -110,13 +110,13 @@ class _MiniplayerState extends State with TickerProviderStateMixin { ), onTap: () { bool up = _height != widget.maxHeight; - animateToHeight(up ? widget.maxHeight : widget.minHeight); + _animateToHeight(up ? widget.maxHeight : widget.minHeight); }, onPanEnd: (details) async { if (_up) - animateToHeight(widget.maxHeight); + _animateToHeight(widget.maxHeight); else - animateToHeight(widget.minHeight); + _animateToHeight(widget.minHeight); }, onPanUpdate: (details) { _prevHeight = _height; @@ -153,7 +153,7 @@ class _MiniplayerState extends State with TickerProviderStateMixin { ); } - void animateToHeight(final double h) { + void _animateToHeight(final double h) { _endHeight = h; _sizeAnimation = Tween( begin: _height,