We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad9570b commit 48b2c92Copy full SHA for 48b2c92
lib/widgets/dashboard/calendar.dart
@@ -78,7 +78,10 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
78
_events = <String, List<Event>>{};
79
_selectedDay = _focusedDay;
80
_selectedEvents = ValueNotifier(_getEventsForDay(_selectedDay!));
81
- loadEvents();
+ //Fix: Defer context-dependent loadEvents() until after build
82
+ WidgetsBinding.instance.addPostFrameCallback((_) {
83
+ loadEvents();
84
+ });
85
}
86
87
void loadEvents() async {
0 commit comments