You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue, for iOS and Android, FlutterNativeTimezone.getLocalTimezone() always returns Null...
(solved) I had called it too early in the app life cycle.
Hi,
I am getting the below error while initializing the time zone in main method.
Error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
E/flutter (23742): #0 MethodChannel.binaryMessenger (package:flutter/src/services/platform_channel.dart:121:86)
E/flutter (23742): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:146:36)
E/flutter (23742): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter (23742): #3 FlutterNativeTimezone.getLocalTimezone (package:flutter_native_timezone/flutter_native_timezone.dart:17:24)
E/flutter (23742): #4 configureLocalTimeZone (package:myapp/main.dart:48:60)
E/flutter (23742): #5 main (package:lotusfeet/main.dart:16:9)
E/flutter (23742): #6 _runMainZoned.. (dart:ui/hooks.dart:145:25)
E/flutter (23742): #7 _rootRun (dart:async/zone.dart:1428:13)
E/flutter (23742): #8 _CustomZone.run (dart:async/zone.dart:1328:19)
E/flutter (23742): #9 _runZoned (dart:async/zone.dart:1863:10)
E/flutter (23742): #10 runZonedGuarded (dart:async/zone.dart:1851:12)
E/flutter (23742): #11 _runMainZoned. (dart:ui/hooks.dart:141:5)
E/flutter (23742): #12 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:283:19)
E/flutter (23742): #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
Please look into it.
Regards,
Shyam
The text was updated successfully, but these errors were encountered: