We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff0e53 commit ac3979bCopy full SHA for ac3979b
1 file changed
lib/app/services/ui_event_queue/ui_event_queue_notifier.r.dart
@@ -48,7 +48,10 @@ class UiEventQueueNotifier extends _$UiEventQueueNotifier {
48
while (state.isNotEmpty) {
49
final event = state.first;
50
try {
51
- await event.performAction(rootNavigatorKey.currentContext!);
+ final context = rootNavigatorKey.currentContext;
52
+ if (context != null && context.mounted) {
53
+ await event.performAction(context);
54
+ }
55
} catch (error, stackTrace) {
56
Logger.error(error, stackTrace: stackTrace);
57
} finally {
0 commit comments