weekHeaderSettings property

WeekHeaderSettings weekHeaderSettings
final

Sets the style to customize week label in SfCalendar schedule view.

Allows to customize the WeekHeaderSettings.startDateFormat, WeekHeaderSettings.endDateFormat, WeekHeaderSettings.height, WeekHeaderSettings.textAlign, WeekHeaderSettings.backgroundColor and WeekHeaderSettings.labelTextStyle in week label style of schedule view in calendar.

See also:


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           weekHeaderSettings: WeekHeaderSettings(
               startDateFormat: 'dd MMM ',
               endDateFormat: 'dd MMM, yy',
               height: 50,
               textAlign: TextAlign.center,
               backgroundColor: Colors.red,
               weekTextStyle: TextStyle(
                 color: Colors.white,
                 fontWeight: FontWeight.w400,
                 fontSize: 15,
               ))),
     ),
   );
 }

Implementation

final WeekHeaderSettings weekHeaderSettings;