Skip to content

Commit 50bd207

Browse files
committed
revert change
1 parent 7da4423 commit 50bd207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flutter/lib/src/event_processor/flutter_enricher_event_processor.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ class FlutterEnricherEventProcessor implements EventProcessor {
261261

262262
Locale? _retrieveWidgetLocale(GlobalKey<NavigatorState>? navigatorKey) {
263263
final context = navigatorKey?.currentContext;
264-
if (context == null) {
265-
return null;
264+
if (context != null) {
265+
return Localizations.maybeLocaleOf(context);
266266
}
267-
return Localizations.maybeLocaleOf(context);
267+
return null;
268268
}
269269
}
270270

0 commit comments

Comments
 (0)