dayFormat property
Formats a text in the SfDateRangePicker month view view header.
Text format in the SfDateRangePicker month view view header.
Defaults to EE
.
See also:
- viewHeaderStyle, which used to customize the view header view of the date range picker.
- SfDateRangePicker.backgroundColor, which fills the background of the date range picker.
- SfDateRangePicker.todayHighlightColor, which highlights the today date in the date range picker.
- viewHeaderHeight, which is the size for the view header view in the month view of date range picker.
- Knowledge base: How to replace the view header with the custom widget
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfDateRangePicker(
controller: _pickerController,
view: DateRangePickerView.month,
selectionMode: DateRangePickerSelectionMode.single,
monthViewSettings: DateRangePickerMonthViewSettings(
dayFormat: 'EEE'),
),
),
);
}
Implementation
final String dayFormat;