firstDayOfWeek property
The first day of the week in the SfHijriDateRangePicker month view.
Allows you to change the first day of the week in the month view, every month view will start from the day set to that property.
Defaults to 7
which indicates DateTime.sunday
.
See also:
- showWeekNumber, which displays the week number of the year in the month view of the hijri date range picker.
- Knowledge base: How to change the first day of week
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
controller: _pickerController,
view: HijriDatePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
monthViewSettings:
HijriDatePickerMonthViewSettings(firstDayOfWeek: 2),
),
),
);
}
Implementation
final int firstDayOfWeek;