devtools icon indicating copy to clipboard operation
devtools copied to clipboard

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

Open Pranavkhedkarwebsite opened this issue 9 months ago • 1 comments

<-- 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 avatar May 10 '24 06:05 Pranavkhedkarwebsite

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

andikatp avatar May 16 '24 07:05 andikatp

This does not appear to be an issue report for Dart & Flutter DevTools. If you are still looking for help, consider posting on Discord or checking stack overflow. Thanks.

kenzieschmoll avatar Jul 17 '24 20:07 kenzieschmoll