mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Updates the widget previewer to properly handle previews defined across a workspace. This is effectively equivalent to displaying previews from multiple individual projects, which required a fairly significant rework to properly support: - resolving asset paths to the right project - loading assets across projects in the workspace - tracking changes to pubspec.yaml files across the workspace While making this change, it became apparent that we don't need to explicitly list the assets from the various projects explicitly in the scaffold's pubspec.yaml as they're automatically pulled in by adding those project's as dependencies and using the `package/$ASSET_PATH` format to load the assets from the scaffold. This allowed for the removal of a significant amount of logic related to building the scaffold's pubspec. Fixes https://github.com/flutter/flutter/issues/169268