mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Applying `@Preview()` to an invalid AST node shouldn't cause the preview environment to throw an exception due to invalid generated code. This change adds some additional checks to ensure that invalid `@Preview()` applications are ignored. Related issue: https://github.com/flutter/flutter/issues/173959 Related stable hotfix: https://github.com/flutter/flutter/pull/173979