HijriDatePickerMonthViewSettings class Null safety

Options to customize the month view of the SfHijriDateRangePicker.

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

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         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
             ]),
       ),
     ),
   );
 }

Mixed in types
Annotations

Constructors

HijriDatePickerMonthViewSettings({int firstDayOfWeek = 7, String dayFormat = 'EE', double viewHeaderHeight = 30, DateRangePickerViewHeaderStyle viewHeaderStyle = const DateRangePickerViewHeaderStyle(), bool enableSwipeSelection = true, List<HijriDateTime>? blackoutDates, List<HijriDateTime>? specialDates, bool showWeekNumber = false, DateRangePickerWeekNumberStyle weekNumberStyle = const DateRangePickerWeekNumberStyle(), List<int> weekendDays = const <int>[6, 7]})
Creates a date range picker month view settings for date range picker. [...]
const

Properties

blackoutDates List<HijriDateTime>?
Disables the interactions for certain dates in the month view of SfHijriDateRangePicker. [...]
final
dayFormat String
Formats a text in the SfHijriDateRangePicker month view view header. [...]
final
enableSwipeSelection bool
Enables the swipe selection for SfHijriDateRangePicker, which allows to select the range of dates by swiping on the dates. [...]
final
firstDayOfWeek int
The first day of the week in the SfHijriDateRangePicker month view. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showWeekNumber bool
Used to displays the week number of the year in the month view of the SfHijriDateRangePicker. [...]
final
specialDates List<HijriDateTime>?
In the month view of SfHijriDateRangePicker highlights the unique dates with different style rather than the other dates style. [...]
final
viewHeaderHeight double
The height of the view header to the layout within this in month view of SfHijriDateRangePicker. [...]
final
viewHeaderStyle DateRangePickerViewHeaderStyle
Sets the style to customize SfHijriDateRangePicker month view view header. [...]
final
weekendDays List<int>
The weekends for month view in SfHijriDateRangePicker. [...]
final
weekNumberStyle DateRangePickerWeekNumberStyle
Defines the text style for the text in the week number panel of the SfHijriDateRangePicker. [...]
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override