koukibadr / Bottom-Picker

https://pub.dev/packages/bottom_picker
MIT License
32 stars 21 forks source link

Adding optional pop on close #87

Closed Feynallein closed 6 months ago

Feynallein commented 6 months ago

Adding a popOnClose option that allows for a more granular control over the close functionality.

If the user gives a onClose callback, the popOnClose will enable/prevent the close method to call Navigator.pop(context).

This proves useful when using the BottomPicker as a widget in a UI and not as modal bottom sheet.

koukibadr commented 6 months ago

Thanks @Feynallein for your contribution to this package