mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
If Flutter Web is not enabled, the widget previewer will crash when trying to find a web device to launch with. This change explicitly checks for this case and throws `ToolExit` with instructions to enable Flutter Web if it's not enabled. Fixes https://github.com/flutter/flutter/issues/178486