weekNumberStyle property

DateRangePickerWeekNumberStyle weekNumberStyle
final

Defines the text style for the text in the week number panel of the SfHijriDateRangePicker.

Defaults to null

see also:

  • showWeekNumber, which allows to display the week number of the year in the month view of the hijri date range picker.
  • firstDayOfWeek, which used to customize the start day of the week in month view of hijri date range picker.
Widget build(BuildContext context) {
  return Scaffold(
  body: SfHijriDateRangePicker(
    view: HijriDatePickerView.month,
    monthViewSettings: const HijriDatePickerMonthViewSettings(
    showWeekNumber: true,
    weekNumberStyle: const DateRangePickerWeekNumberStyle(
        textStyle: TextStyle(fontStyle: FontStyle.italic),
        backgroundColor: Colors.purple),
    ),
  ),
 );
}

Implementation

final DateRangePickerWeekNumberStyle weekNumberStyle;