Flutter DatePicker without day
The stock pickers do not allow to have month and year only.
You could use the month_picker_dialog package available in the pub page by Dimitri Krivoj.
For someone else that needs a different approach, setting the dateFormat to 'yyyy-mm' would hide the day field.
DatePicker.showDatePicker(
...
dateFormat:'yyyy-mm',
...
);