dxvid-pts / miniplayer

A lightweight flutter package to simplify the creation of a miniplayer.
https://pub.dev/packages/miniplayer
MIT License
106 stars 79 forks source link

MiniController animation functionally won't work after parent widget rebuilds. #6

Closed vishal-akg closed 3 years ago

vishal-akg commented 3 years ago

As listener is attached to Minicontroller inside initState widget life cycle method but Mini player is very likely to be recreated because of parent widget rebuilds ex. Safe Area change ( Device Navigation keys hide, show) , MediaQuery and others so. Opacity test 0 <= opacity <= 1.0 fails too because after safe area height changes.

dxvid-pts commented 3 years ago

I couldn't recreate this issue. The controller is always working for me.

Opacity test 0 <= opacity <= 1.0

This can happen if you use a special Curve such as Curves.easeInOutBack.