dxvid-pts / miniplayer

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

Video reloading before dismiss #29

Open xOldeVx opened 1 year ago

xOldeVx commented 1 year ago

When using onDismissed function, and the user drag the miniplayer a little bit to down (for dismiss) the player is reloading, it's not good because the user didn't finished the tap, only by a little drag to down it's rebuild the widget / restart the video. In my case when i drag it down and immediately drag it up (for not dismiss), the video is reload to start instead of resume the playing...

I can see the point of the "bug" in the code, when drag down (value != 0) so the widget is rebuild with opacity and transform.

image

The opacity is really cool, and the transform is necessary but it destroys minimal user experience

It's great if you can fix that. i mean only when the user finished the tap, run the onDismissed function.