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
Improve SnackBar error message when shown during build #106658
Improve SnackBar error message when shown during build #106658
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.
Let me run this through Google testing first, in the past folks have tried to solve this and broken some customers internally (I need to approve before being able to run the tests). This is a different approach though, so it may be ok. Thanks!
Marked WIP so the bot will not merge accidentally. |
Internal tests all passed, it looks like there is a merge conflict though, can you resolve? |
28f00f6
to
12b60aa
Compare
12b60aa
to
66cb5a7
Compare
Description
This PR catches the generic error thrown when calling
ScaffoldMessenger.showSnackBar()
during build and throws an error with a more intuitive message.Related Issue
Fixes #66789
Tests
Adds 1 test.