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:
name: example
flutter: true
Common fixes
#If you need to specify Flutter-specific options, then change the value to be a map:
name: example
flutter:
uses-material-design: true
If you don't need to specify Flutter-specific options, then remove the
flutter
key:
name: example
Unless stated otherwise, the documentation on this site reflects Dart 3.9.2. Page last updated on 2025-9-1. View source or report an issue.