I want to customize DateRangePicker
in flutter, How can I change the following elements?
Save
button to image.Switch to input
button.header background
color.day name
color.background
color.selected item indicator
color.selected item text
color.selected range indicator
color.selected range text
color.showDateRangePicker(
context: context,
firstDate: DateTime.now(),
lastDate: DateTime.now().add(Duration(days: 100)),
builder: (BuildContext context, Widget child) {
return Theme(
data: ThemeData(
...
),
child: child,
);
},
);
@Michael Feinstein is right - to elaborate a little bit on what you have to do:
_CalendarRangePickerDialog
and change what you need. For your 6-9 look at _buildDayItem
in the range picker file and the other 2 are also easy to find :-)Now you are all set and good to go.