Home > front end >  i am trying to make my first app in fluttet "Error on line 46, column 15: Mapping values are no
i am trying to make my first app in fluttet "Error on line 46, column 15: Mapping values are no

Time:09-11

enter image description here cupertino_icons: ^1.0.2

STATE MANAGEMENT

mobx: ^2.0.3 flutter_mobx: ^2.0.1 dev_dependencies: flutter_test: sdk: flutter mobx_codegen: ^2.0.2 build_runner: ^2.2.0

CodePudding user response:

try upgrade your package cmd "flutter pub upgrade"

CodePudding user response:

paste this code like this as you didn't added space

dev_dependencies:
  flutter_test:
    sdk: flutter
  mobx_codegen: ^2.0.7
  build_runner: ^2.2.0

CodePudding user response:

Try the following code:

dev_dependencies:
  flutter_test:
    sdk: flutter
  mobx_codegen: ^2.0.2
  build_runner: ^2.2.0

CodePudding user response:

You need to insert space in front of mobx_codegen.

So you pubspec needs to look like this:

dev_dependencies:
  flutter_test:
    sdk: flutter
  mobx_codegen: ^2.0.2
  build_runner: ^2.2.0
  • Related