Skip to content
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

Better error when SnackyConfiguratorWidget is missing #5

Open
ikbendewilliam opened this issue Feb 10, 2025 · 0 comments
Open

Better error when SnackyConfiguratorWidget is missing #5

ikbendewilliam opened this issue Feb 10, 2025 · 0 comments

Comments

@ikbendewilliam
Copy link

Here's what I did:

  • Added package
  • Added SnackyController.instance.showMessage
  • Ran my code

Got a very verbose error because of this line

      snacky: builder(_overlayState!.context),

Because I don't read full documentation (sorry 😛) I missed that I needed to add a SnackyConfiguratorWidget

Therefore _overlayState was null.

I think adding an assert with the message "Did you add a SnackyConfiguratorWidget?" would improve this.

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

No branches or pull requests

1 participant