Skip to content

Show warning when nesting Scaffolds #23106

@p30arena

Description

@p30arena

Using nested Scaffolds can cause unexpected behaviors that rush new issues into this repository,
to prevent further issue reports related, I suggest an assertion in the Scaffold Class just for Debug Mode:

assert(() {
  assert(context.ancestorWidgetOfExactType(Scaffold) == null);
});

These are some of the issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: 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