zulfahmi93 / month-year-picker

Material picker for selecting month and year.
MIT License
16 stars 119 forks source link

Size of month buttons #25

Open herbertamukhuma opened 1 year ago

herbertamukhuma commented 1 year ago

Provide a way of controlling the size of the month button or fit them within the available space. (Also, the issue link from pub.dev is wrong, it leads me to different repository) image

tony-soft commented 1 year ago

Duplicated https://github.com/zulfahmi93/month-year-picker/issues/8

Keremovsky commented 1 year ago

Months still don't fit into the space.

zpc7 commented 9 months ago

same as me

image
raegtime commented 9 months ago

workaround:

await showMonthYearPicker(
                      builder: (BuildContext context, Widget? child) => Theme(
                          data: Theme.of(context).copyWith(materialTapTargetSize: MaterialTapTargetSize.shrinkWrap),
                          child: child!),
                      context: context,
                      initialDate: initialDate,
                      firstDate: firstDate,
                      lastDate: lastDate,
                    )
unix14 commented 1 week ago

builder: (BuildContext context, Widget? child) => Theme( data: Theme.of(context).copyWith(materialTapTargetSize: MaterialTapTargetSize.shrinkWrap), child: child!)

works!!