theideasaler / calendar_date_picker2

Lightweight and highly customizable calendar picker built on Flutter's original CalendarDatePicker, with support for multi and range modes.
https://pub.dev/packages/calendar_date_picker2
Apache License 2.0
118 stars 143 forks source link

[Feature] Allow passing a scroll controller for scroll view mode #186

Closed Chuckame closed 3 months ago

Chuckame commented 3 months ago

Describe the feature you'd like I would like to have the scroll view into a bottom sheet modal. I also want to close the modal by sliding down the bottom sheet, but this library is managing by itself the constraints and the scrolling, so I'm unable to do this.

I propose to allow passing a ScrollController to allow binding it to the DraggableScrollableSheet's scrollController. That way, when scrolling down, the DraggableScrollableSheet receives the scroll instead of having a sub-scroll managed, and the modal closes by itself.

This may remove the scroll listener and box constraints parameters, as the user may want to constraint the calendar widget by himself.

theideasaler commented 3 months ago

Hi @Chuckame this seems to be a valid feature request. feel free to raise a PR.

theideasaler commented 3 months ago

scrollController added in the latest release https://pub.dev/packages/calendar_date_picker2