monthViewSettings property

HijriDatePickerMonthViewSettings monthViewSettings
final

Options to customize the month view of the SfHijriDateRangePicker.

Allows to customize the HijriDatePickerMonthViewSettings.firstDayOfWeek, HijriDatePickerMonthViewSettings.dayFormat, HijriDatePickerMonthViewSettings.viewHeaderHeight, HijriDatePickerMonthViewSettings.viewHeaderStyle, HijriDatePickerMonthViewSettings.enableSwipeSelection, HijriDatePickerMonthViewSettings.blackoutDates, HijriDatePickerMonthViewSettings.specialDates and HijriDatePickerMonthViewSettings.weekendDays in month view of date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         selectionRadius: 10,
         monthViewSettings: HijriDatePickerMonthViewSettings(
             firstDayOfWeek: 1,
             dayFormat: 'E',
             viewHeaderHeight: 70,
             viewHeaderStyle: DateRangePickerViewHeaderStyle(
                 backgroundColor: Colors.blue,
                 textStyle:
                     TextStyle(fontWeight: FontWeight.w400,
                          fontSize: 15, color: Colors.black)),
             enableSwipeSelection: false,
             blackoutDates: <HijriDateTime>[
               HijriDateTime.now().add(Duration(days: 4))
             ],
             specialDates: <HijriDateTime>[
               HijriDateTime.now().add(Duration(days: 7)),
               HijriDateTime.now().add(Duration(days: 8))
             ],
             weekendDays: <int>[
               DateTime.monday,
               DateTime.friday
             ]),
       ),
     ),
   );
 }

Implementation

final HijriDatePickerMonthViewSettings monthViewSettings;