textAlign property

TextAlign textAlign
final

How the text should be aligned horizontally in SfCalendar week label of schedule view.

Defaults to TextAlign.start.

See also:


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           weekHeaderSettings: WeekHeaderSettings(
                  textAlign: TextAlign.center)),
     ),
   );
 }

Implementation

final TextAlign textAlign;