Update the flutter pubspec-analyzing code to allow more complex asset declarations #54038
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
flutter/flutter#132985 will allow a new type of asset declaration within the
pubspec.yaml
file of Flutter projects. In particular, it will allow entries in theassets
list to either be strings (as they are today), or maps with apath
and aflavors
list. Consider this example:Since the analyzer includes code to validate the
assets
section within Flutter pubspecs, the analyzer raises warnings when validating pubspecs such as example one just mentioned:Before this feature is landed, the analyzer code should be updated to account for the new syntax.
The text was updated successfully, but these errors were encountered: