Uh oh!
There was an error while loading. Please reload this page.
Assert that runApp is called in the same zone as binding.ensureInitialized - #122836
Conversation
Hixie
commented
Mar 16, 2023
christopherfujino
commented
Mar 16, 2023
For posterity, the failures this was reverted for were actually fixed in 6711411 |
mit-mit
commented
May 12, 2023
@Hixie a few folks have requested that should be documented with migration steps as a breaking change. |
gabrimatic
commented
May 12, 2023
@mit-mit You're true! I am getting this error after updating to Flutter 3.10: |
Hixie
commented
May 12, 2023
Sure, I'll see what I can whip up. |
Migration guide for flutter/flutter#122836
Hixie
commented
May 13, 2023
proposed migration guide: flutter/website#8683 |
Migration guide for flutter/flutter#122836 --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
filiph
commented
Jun 4, 2023
Hi @Hixie, I need guidance on another use of Historically, when using Firebase Crashlytics, Zones were used to catch all errors: https://firebase.flutter.dev/docs/crashlytics/usage/#zoned-errors — even those in various callbacks. For something like Crashlytics, this is useful, because you do want to have reports about all your errors. I used this approach in the I was going to ask if there is any new guidance on cases like this, when you want to run your app in a Zone (i.e. Newer Crashlytics documentation does not mention this case at all. |
Hixie
commented
Jun 5, 2023
Create the zone, call initialize binding in the zone, then configure the plugin, then call runApp. You'll need to do something like have the zone error handler call a configurable callback that you can set up from inside the zone. |
Fixes#94123