メインコンテンツにスキップ

flutter_field_not_map

'flutter' フィールドの値はマップであると想定されています。

説明

#

flutter キーの値がマップではない場合、アナライザーはこの診断を生成します。

#

以下のコードは、トップレベルの flutter キーの値が文字列であるため、この診断を生成します。

yaml
name: example
flutter: true

一般的な修正

#

Flutter 固有のオプションを指定する必要がある場合は、値をマップに変更してください。

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

Flutter 固有のオプションを指定する必要がない場合は、flutter キーを削除してください。

yaml
name: example