-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
No Overlay widget found exception When showing snackbar #148314
Comments
@stan-at-work |
This comment was marked as outdated.
This comment was marked as outdated.
Same result (exception) is given in my case if I add
@darshankawar Here it is. I don't use multiple Materials.
Flutter 3.19.5: No errors Flutter 3.22.1: Exceptions
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks for the code. I was able to replicate this on latest stable and master version, whereas, the same code works properly in stable 3.19.6 showing the snackbar properly upon tapping on Code sample used: #148314 (comment) stable, master flutter doctor -v
|
I face same issue, after I update flutter version, I have this issue. |
This is working as intended because you're not including an Overlay widget in the tree and the close button of the snackbar ( By default, MaterialApp introduces a Navigator, which includes an Overlay. However, This didn't crash in 3.19.5 because the tooltip for the close button of the snack bar was only introduced in #143934 as an accessibility fix. Not having the tooltip was a bug that made the snackbar less accessible. |
This should be documented in the comments, now its hard to see why this is not a bug. |
This is documented on the
What additional information would have made this clearer? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
When hovering over a tooltip, i get the following assertion:
Currently the tree looks like this:
![image](https://private-user-images.githubusercontent.com/147701137/330428904-9e0c0c49-b34b-41d1-93e8-f2cd6af28e6d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MjU2MDMsIm5iZiI6MTcyNDcyNTMwMywicGF0aCI6Ii8xNDc3MDExMzcvMzMwNDI4OTA0LTllMGMwYzQ5LWIzNGItNDFkMS05M2U4LWYyY2Q2YWYyOGU2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwMjIxNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMWQ5NWY4M2Y5MjhhYTE4NjU1ZDA5ZmUyYWE5MDBlMDIzNGZjNGNhMTE2NGYxMzE5MjQxNmNkY2EyMzg5ZDlhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.YGZRhwKVGy6qZamuAKq7XiJWYaoqSTIVgxen1VIgyAM)
This indicates that there are currently 2 Material widgets present that could provide a Overlay.
The error is triggered at the following level:
![image](https://private-user-images.githubusercontent.com/147701137/330429399-a3ba7241-e5e6-492e-9fb7-0f1b85dac69d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MjU2MDMsIm5iZiI6MTcyNDcyNTMwMywicGF0aCI6Ii8xNDc3MDExMzcvMzMwNDI5Mzk5LWEzYmE3MjQxLWU1ZTYtNDkyZS05ZmI3LTBmMWI4NWRhYzY5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QwMjIxNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYjljYTVjYWExNmNiNjlkYzMxODBlZWRmODAyYzhkNzliMDMwOTZhMTNhYmYwN2NmOWZhZjBmMjE0NzExY2U2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.4Y7ma7S0uKySIa4IFvsP1KanGkrwRI9si8BCK6ehoGs)
I can't find any reason why this assertion pops up.
This issue started after i upgraded to flutter 3.22 (latest) from 3.19.x
Expected results
No error like flutter 3.19.x
Actual results
I get an error when trying to click/hover over a button that has a toolTip in it.
Code sample
/
Screenshots or Video
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: