I'm using the onWeekChanged event to add some logic & update some variables and if I use the setState function within this event, the calendar disappears. Firstly I thought it was due to my code, but it doesn't seem.
onWeekChanged: () {
setState(() {
// Even with this empty, the calendar will disappear
});
},
I'm using the
onWeekChangedevent to add some logic & update some variables and if I use the setState function within this event, the calendar disappears. Firstly I thought it was due to my code, but it doesn't seem.