flutter/packages/flutter_tools/test/widget_preview_scaffold.shard
Danny Tuppeny c8d620e665
Unpin test/test_core/test_api packages (#169198)
These packages were recently pinned (in
https://github.com/flutter/flutter/pull/168916) due to a bug
(https://github.com/dart-lang/test/issues/2498).

That bug was fixed and new versions of the test packages published. This
change unpins and lets them upgrade to the fixed version.
2025-05-22 23:15:08 +00:00
..
widget_preview_scaffold Unpin test/test_core/test_api packages (#169198) 2025-05-22 23:15:08 +00:00
.gitignore [ Widget Previews ] Add widget_preview_scaffold.shard to test the widget_preview_scaffold template contents (#166358) 2025-04-04 18:43:52 +00:00
README.md [ Widget Previews ] Add widget_preview_scaffold.shard to test the widget_preview_scaffold template contents (#166358) 2025-04-04 18:43:52 +00:00
update_widget_preview_scaffold.dart [ Widget Preview ] Add support for "soft" restart of individual previews (#166846) 2025-04-10 16:20:11 +00:00

Widget Preview Scaffold Testing

This directory contains a hydrated instance of the widget_preview_scaffold project template that's used for generating the environment used by flutter widget-preview start to host Widget Previews, as well as utilities to detect if the hydrated instance is outdated when compared to the template files.

Updating the Hydrated Template

If any of the widget_preview_scaffold template files are updated, widget_preview_scaffold/test/template_change_detection_smoke_test.dart will fail to indicate that the hydrated scaffold needs to be regenerated. To do this, run dart test/widget_preview_scaffold.shard/update_widget_preview_scaffold.dart to regenerate the project.