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
128 stars 151 forks source link

[Feature]custom scroll #215

Closed macMikey closed 1 month ago

macMikey commented 2 months ago

i would like to be able to set the scroll so that i can both show today's date, and have it either at the beginning or the end of the scroll, instead of the middle. use case: i want to figure out how old an invoice is as of a certain date. the default to date is today, and the from date is sometime in the past. to do that. alternative use case: i want to plan an employee's schedule, starting today. today should be at the start of the scroll.

sdzfg347 commented 2 months ago

Hi @macMikey, this is achievable via passing your custom controllers into the config. Currently different views can be set with custom controllers. e.g. dayViewController, monthViewController, yearViewController, and scrollViewController.