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_previews] Intercept prohibited hot reloads and hot restart instead #192697
When using widget previews using flutter widget-preview start and hot reload is prohibited, the widget previewer should try hot restarting instead, since we cannot do it ourselves, since we do not control stdin for the previewer process.
Proposal
Have the widget previewer intercept messages such as
Exception: Const class cannot remove fields: Library:'package:my_project/foo/bar.dart' Class: Bar
Hot reload rejected due to unsupported changes. Try performing a hot restart instead.
log that a hot reload was prevented and that a hot restart will be done instead.
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
[flutter_tools] Intercept prohibited hot reloads in widget preview an…
Revert: [flutter_tools] Intercept prohibited hot reloads in widget pr…
github-actions commentedon Oct 21, 2026
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.[flutter_tools] Intercept prohibited hot reloads in widget preview an…
Revert: [flutter_tools] Intercept prohibited hot reloads in widget pr…