Skip to content

[State Restoration] showDialog/showGeneralDialog not state restorable #70918

@shihaohong

Description

@shihaohong

Dialogs are not state restorable.

This was discovered migrating the Flutter Gallery's Dialog demos.

Reproduction:

  1. Create an app that displays a dialog. You can build flutter/gallery and go to any of the Dialog demos (there are 4 configurations).
  2. Open any of the dialogs in the demo.
  3. Kill the activity on Android, notice that the dialog state is not restored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: state restorationRestorationManager and related APIsf: 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