Repository navigation
[ Widget Preview ] Running flutter pub get after adding a plugin dependency causes the previewer to crash #178317
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Activity
- addedP1High-priority issues at the top of the work listHigh-priority issues at the top of the work listteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool teama: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer tooling
on Nov 11, 2025 This issue can be worked around by executing
flutter pub getafter updating Flutter or adding / updating dependencies to a project and then restarting the widget previewer. For IDE users, this simply requires restarting the IDE.- added a commit that references this issue
on Nov 12, 2025 - added a commit that references this issue
on Nov 13, 2025 - added a commit that references this issue
on Nov 22, 2025 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Nov 27, 2025 - added a commit that references this issue
on Dec 2, 2025 - added a commit that references this issue
on Dec 10, 2025 - added a commit that references this issue
on Sep 28, 2026
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: widget previewsIssues related to the Widget Previewer toolingIssues related to the Widget Previewer toolingteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
To reproduce:
flutter widget-preview start --web-serverin a Flutter project directorypubspec.yamlflutter pub getThis will cause the
flutter widget-previewprocess to repeatedly crash with an exception similar to the following:Stack trace: