firstDayOfWeek property
The first day of the week in the SfCalendar.
Allows to change the first day of week in all possible views in calendar, every view's week will start from the date set to this property.
Defaults to 7
which indicates DateTime.sunday
.
See also:
- showWeekNumber, to display the week number of the year.
- Knowledge base: How to change the first day of week
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
firstDayOfWeek: 3,
),
);
}
Implementation
final int firstDayOfWeek;