flutter_field_not_map
The value of the 'flutter' field is expected to be a map.
Description
#The analyzer produces this diagnostic when the value of the flutter
key
isn't a map.
Example
#The following code produces this diagnostic because the value of the
top-level flutter
key is a string:
yaml
name: example
flutter: true
Common fixes
#If you need to specify Flutter-specific options, then change the value to be a map:
yaml
name: example
flutter:
uses-material-design: true
If you don't need to specify Flutter-specific options, then remove the
flutter
key:
yaml
name: example
除非另有说明,文档之所提及适用于 Dart 3.7.3 版本,本页面最后更新时间: 2025-05-08。 查看文档源码 或者 报告页面问题。