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

ScaffoldMessenger.showSnackBar was called, but there are currently no descendant Scaffolds to present to. #7735

Open
Pranavkhedkarwebsite opened this issue May 10, 2024 · 1 comment

Comments

@Pranavkhedkarwebsite
Copy link

<-- Please describe your problem here. Be sure to include repro steps. -->


DevTools version: 2.20.1
ScaffoldMessenger.showSnackBar was called, but there are currently no descendant Scaffolds to present to.
'package:flutter/src/material/scaffold.dart':
scaffold.dart:1
Failed assertion: line 291 pos 7: '_scaffolds.isNotEmpty'

@Pranavkhedkarwebsite Pranavkhedkarwebsite changed the title SnackBar Message ScaffoldMessenger.showSnackBar was called, but there are currently no descendant Scaffolds to present to. May 10, 2024
@andikatp
Copy link

I was getting this error this morning, then i realize that i wrap my scaffold with two materialApp. Maybe it helps?

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

2 participants