weekendDays property
The weekends for month view in SfHijriDateRangePicker.
Defaults to <int>[6,7]
represents <int>[DateTime.saturday, DateTime.sunday]
.
Note: The weekendDays will not be highlighted until it's customize by using the HijriDatePickerMonthCellStyle.weekendTextStyle or HijriDatePickerMonthCellStyle.weekendDatesDecoration property.
See also:
- HijriDatePickerMonthCellStyle.weekendTextStyle, which used to set text style for the week end cell text in month view.
- HijriDatePickerMonthCellStyle.weekendDatesDecoration, which used to set decoration for the week end cell text in month view.
- specialDates, which used to highlight specific dates in the month view of hijri date range picker.
- blackoutDates, which used to restrict the user interaction for the specific dates in teh month view of date range picker.
- Knowledge base: How to change the week end dates
- Knowledge base: How to change the number of weeks
- Knowledge base: How to apply theming
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
controller: _pickerController,
view: HijriDatePickerView.month,
selectionMode: DateRangePickerSelectionMode.range,
monthViewSettings: HijriDatePickerMonthViewSettings(
weekendDays: <int>[DateTime.friday, DateTime.saturday]),
),
),
);
}
Implementation
final List<int> weekendDays;