You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ Widget Preview ] Running flutter pub get after adding a plugin dependency causes the previewer to crash #178317
Run flutter widget-preview start --web-server in a Flutter project directory
Add a plugin package dependency to the pubspec.yaml
Run flutter pub get
This will cause the flutter widget-preview process to repeatedly crash with an exception similar to the following:
Oops; flutter has exited unexpectedly: "Bad state: Unable to find the context to
/Users/bkonyi/samples/background_isolate_channels/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux/test/shared_preferences_linux_async_test.dart".
This issue can be worked around by executing flutter pub get after updating Flutter or adding / updating dependencies to a project and then restarting the widget previewer. For IDE users, this simply requires restarting the IDE.
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 -v and a minimal reproduction of the issue.
Activity
bkonyi commentedon Nov 12, 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.[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[CP-stable][ Widget Preview ] Ignore modifications to files in epheme…
[CP-beta][ Widget Preview ] Ignore modifications to files in ephemera…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…
github-actions commentedon Nov 27, 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.[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…
[ Widget Preview ] Ignore modifications to files in ephemeral directo…