monthFormat property
Allows to change the month text format in SfHijriDateRangePicker.
The SfHijriDateRangePicker will render the month format in the month view header with expanded month text format and the year view cells with the short month text format by default.
If it is not null
then the month view header and the year view cells
month text will be formatted based on the format given in this property.
Defaults to null.
See also:
- headerStyle, which used to customize the header view of the hijri date range picker.
- headerHeight, which is the size of the header view in the hijri date range picker.
- yearCellStyle, which is used to customize the year and decade view cells in the hijri date range picker.
- Knowledge base: How to customize the header view
- Knowledge base: How to customize the header in the flutter multi date range picker
- Knowledge base: How to change the month format
- Knowledge base: How to style the year decade and century views
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
view: HijriDatePickerView.month,
selectionMode: DateRangePickerSelectionMode.multiple,
showNavigationArrow: true,
monthFormat: 'EEE',
),
),
);
}
Implementation
final String? monthFormat;