SfCalendar view property not updating


I wan’t to change SfCalendar component view from CalendarView.week to CalendarView.month on parent widget state update. I did it by boolean flag:

Widget build(BuildContext context) {
return SfCalendar(
view: parent.trainersView ? CalendarView.week : CalendarView.month,

But view is not updating. When I’m using the same method for other properties like

backgroundColor: parent.trainersView ? Colors.blue : Colors.brown,

Everything works fine. Did somebody had similar issue?

Ok, found the reason :slight_smile:

If someone will have the same problem, please take a look on: