textAlign property
How the text should be aligned horizontally in SfCalendar month label of schedule view.
Defaults to TextAlign.center
.
See also:
- monthTextStyle, which used to customize the text style for the text in the month header view in calendar.
- monthFormat, which formats the text on the month header view of schedule view in calendar.
- SfCalendar.scheduleViewMonthHeaderBuilder, which used to set custom widget for month header view of schedule view in calendar.
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to customize schedule view month header with builder
- 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(
monthHeaderSettings: MonthHeaderSettings(
textAlign: TextAlign.start)),
),
);
}
Implementation
final TextAlign textAlign;