跳到主內容

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