mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This change adds the following events: - `widget_preview.initializing`: sent immediately after the widget previewer starts. This event includes the PID of the process starting the widget previewer for use by tooling to explicitly kill the tool process. - `widget_preview.logMessage`: sent for calls to `Logger` methods when in machine mode. This follows the same format as `daemon.logMessage`. This change also fixes and improves testing of `WidgetPreviewMachineAwareLogger` in `widget_preview_machine_test.dart` as the existing test validator did not cause tests to fail correctly. Fixes https://github.com/flutter/flutter/issues/175002