blackoutDatesTextStyle property Null safety

TextStyle? blackoutDatesTextStyle
final

Specifies the text style for the blackout dates text in SfCalendar, that can’t be selected. The specified text style overrides existing date text styles( MonthCellStyle.trailingDatesTextStyle, MonthCellStyle.leadingDatesTextStyle and MonthCellStyle.textStyle)

Defaults to null.

Using a SfCalendarTheme gives more fine-grained control over the appearance of various components of the calendar.

See also:

  • blackoutDates, which will add blackout dates to the calendar.
  • SfCalendarTheme, to handle theming with calendar for giving consistent look.
  • Knowledge base: (How to update blackout dates using onViewChanged)https://www.syncfusion.com/kb/12368/how-to-update-blackout-dates-using-onviewchanged-callback-in-the-flutter-calendar
  • Knowledge base: (How to add active dates)https://www.syncfusion.com/kb/12073/how-to-add-active-dates-in-the-flutter-calendar
  • Knowledge base: (How to customize the blackout dates )https://www.syncfusion.com/kb/12003/how-to-customize-the-blackout-dates-in-the-flutter-event-calendar-sfcalendar

Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfCalendar(
         view: CalendarView.month,
         blackoutDatesTextStyle: TextStyle(
            fontStyle: FontStyle.italic,
             fontWeight: FontWeight.w500,
             fontSize: 18,
             color: Colors.black54
         )
       ),
     ),
   );
 }

Implementation

final TextStyle? blackoutDatesTextStyle;