跳到主内容

flutter_field_not_map

'flutter' 字段的值应为一个 map。

描述

#

flutter 键的值不是 map 时,分析器会生成此诊断。

示例

#

以下代码会生成此诊断,因为顶层 flutter 键的值是字符串

yaml
name: example
flutter: true

常见修复

#

如果需要指定 Flutter 特有的选项,请将值更改为 map

yaml
name: example
flutter:
  uses-material-design: true

如果不需要指定 Flutter 特有的选项,请删除 flutter

yaml
name: example