FabioFiuza / scrollable_clean_calendar

A calendar with vertical scroll
MIT License
35 stars 57 forks source link

New features #49

Open g1tPush opened 1 year ago

g1tPush commented 1 year ago

Hello,

I would like to submit a pull request with several new features:

1) An initialMonthIndex parameter for opening the calendar on a specific date. This parameter will be used within the scrollable_positioned_list ListView. I couldn't use jumpToMonth because it throws a null error during runtime when used inside initState, and using Future.delayed to work around it seems unusual. 2) The ability to incorporate custom logic for onDayClick. This would allow users to modify the date picking logic, such as changing the start date without removing the end date. What are your thoughts on these changes?

Thank you.