Skip to content

Conversation

@kwight
Copy link

@kwight kwight commented Feb 14, 2021

This PR ensures a WidgetsBinding instance is initialized before running the app.

If this instance is not initialized before our loadData() call, the app will fail to compile with an unhandled exception: "ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized."

Testing Instructions

  • Check out this repo and attempt to start the app.
  • Notice it will fail to start, breaking on the unhandled exception given above.
  • Switch to this PR.
  • Restart the app, and verify it loads correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant