Assert that runApp is called in the same zone as binding.ensureInitialized#122836
Assert that runApp is called in the same zone as binding.ensureInitialized#122836auto-submit[bot] merged 1 commit intoflutter:masterfrom
Conversation
|
For posterity, the failures this was reverted for were actually fixed in 6711411 |
|
@Hixie a few folks have requested that should be documented with migration steps as a breaking change. |
@mit-mit You're true! I am getting this error after updating to Flutter 3.10: |
|
Sure, I'll see what I can whip up. |
Migration guide for flutter/flutter#122836
|
proposed migration guide: flutter/website#8683 |
Migration guide for flutter/flutter#122836 --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
|
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. |
|
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