-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Assert that runApp is called in the same zone as binding.ensureInitialized #122836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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 <[email protected]>
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