-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add onDragDown to Miniplayer #33
base: master
Are you sure you want to change the base?
feat: Add onDragDown to Miniplayer #33
Conversation
Thank you for your contribution! Looking at this in retroperspective it makes more sense to add a callback function instead of a custom valuenotifier. Then call the callback by listening to the exisiting (private) notifier. E.g Miniplayer(
onDragDown: (percentage){
...
},
); |
sure, I can make the change |
f4c741d
to
cd6c049
Compare
cd6c049
to
234a87e
Compare
I have made the changes. Please review. |
Hi, the listener returned by .addListener needs to be disposed in onDispose (not disposing leads to memory leaks I think). Other than that it's good to go! |
good catch. 480f793 should fix this. according to the docs disposing the notifier should only be done by the owner and doing so will remove any listeners, hence I did it this way since this notifier was created by this widget. please let me know if this is not what you had in mind.
|
Hey @dxvid-pts, just checking in to see if there's anything I can do to help move things forward. It seems you might not have received my last message, so I wanted to make sure you get this one. No pressure at all—I understand how busy things can get, so feel free to ignore this if you're tied up. Thanks! |
the notifier is there, this just makes it possible to be supplied from parent like the height notifier.
Use case: Control the volume of the media player like youtube does.