Open passsy opened 4 years ago
Hey @passsy thanks for the report, look super weird !! because from the doc https://api.flutter.dev/flutter/widgets/WidgetsFlutterBinding/ensureInitialized.html once it's called it's done, so it shouldn't mind having it outside the zone.
When I have some time I'll update the readme, keep this one opened until it's done :)
I had trouble getting errors reported. Synchronous errors where caught but not asynchronous ones. The problem was that
WidgetsFlutterBinding.ensureInitialized()
was called outside of the error catching zone.Moving
WidgetsFlutterBinding.ensureInitialized()
insiderunZoned
fixes it and now reports all errors.I think the Readme should get an update.