textAlign property
How the text should be aligned horizontally in SfCalendar week label of schedule view.
Defaults to TextAlign.start
.
See also:
- backgroundColor, which used to fill the background of the week header view in the schedule view of calendar.
- weekTextStyle, which used to customize the text style for the text in the week header view of schedule view in calendar.
- startDateFormat, which used to format the start date text in the week header view of schedule view in calendar.
- endDateFormat, which used to format the end date text in the week header view of schedule view in calendar.
- height, which is the size for the week header view in the schedule view of calendar.
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to view schedule
- Knowledge base: How to customize the schedule view
@override
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.schedule,
scheduleViewSettings: ScheduleViewSettings(
weekHeaderSettings: WeekHeaderSettings(
textAlign: TextAlign.center)),
),
);
}
Implementation
final TextAlign textAlign;