dxvid-pts / miniplayer

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

No programmatic way of switching between snap position. #5

Closed vishal-akg closed 4 years ago

vishal-akg commented 4 years ago

Suppose I want to snap to min when a user presses back button, and back to snap snap max when clicked on different button.

dxvid-pts commented 4 years ago

Thanks for submitting. Adding a controller is on the roadmap for the next release.

dxvid-pts commented 4 years ago

I added a roadmap for the next releases now.

dxvid-pts commented 4 years ago

An early implementation now landed in master. The API might change until the next version will be released. Let me know if you have feedback on this.

Implementation: controller.animateToHeight(state: PanelState.MAX);

vishal-akg commented 4 years ago

yes recent code changes works as expected! kudos!!