Skip to content

ScaffoldMessenger.showSnackBar doesn't check if there are any Scaffolds to present in #103004

@Piinks

Description

@Piinks

Title!

You can call showSnackBar and have nothing happen if there is not a descendant Scaffold.
We should add an assertion to let folks know.

Metadata

Metadata

Assignees

Labels

a: error messageError messages from the Flutter frameworkf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions