Skip to content

Handle previews that throw exceptions during widget tree construction #166432

@bkonyi

Description

@bkonyi

If an exception is thrown by a user defined preview while constructing the widget tree and is not handled, the entire widget preview environment will show the red screen of death.

This class of exception should not take down the entire preview environment and should instead show an error message in the relevant preview.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions