scheduleViewMonthHeaderBuilder property
A builder that builds a widget, replace the schedule month header widget in calendar schedule view.
See also:
- scheduleViewSettings, to customize the schedule view of calendar.
- Knowledge base: Customize the schedule view month header using builder
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: SfCalendar(
view: CalendarView.schedule,
scheduleViewMonthHeaderBuilder: (BuildContext buildContext,
ScheduleViewMonthHeaderDetails details) {
return Container(
color: Colors.red,
child: Text(
details.date.month.toString() + ' ,' +
details.date.year.toString(),
),
);
},
)));
}
Implementation
final ScheduleViewMonthHeaderBuilder? scheduleViewMonthHeaderBuilder;