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 152 forks source link

[Feature] Hide lastMonthIcon and nextMonthIcon #224

Open tomassasovsky opened 1 month ago

tomassasovsky commented 1 month ago

Is your feature request related to a problem? Please describe. I need to hide the arrows from lastMonthIcon and nextMonthIcon. Setting the widgets to an empty container or SizedBox doesn't work since the hit target is already there.

Describe the feature you'd like Add a parameter which hides these buttons.

Use cases Make the package fit a different design.

sdzfg347 commented 1 month ago

Hi @tomassasovsky, a workaround is to set the firstDate and lastDate to the first day and last day of the current month.

tomassasovsky commented 1 month ago

Doesn't solve my issue, I need to be able to scroll as well - also, that's not very intuitive.

sdzfg347 commented 1 month ago

@tomassasovsky hideLastMonthIcon && hideNextMonthIcon will be shipped shortly