I'm just open VSCode but i'm in the problem with this code.
they are not working at all file. so I wrote ':' and then next line show error.
please save me in this problem.
enter code hereenter image description here
CodePudding user response:
Please try to change like below and try again.
...
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
...
CodePudding user response:
I think when pull code you have conflict in pubspec.lock. Remember that all lock file should not push to remote branch such as pubspec.lock or podfile.lock.
In your case. You just remove lock, clean and pub get again.
rm -rf pubspec.lock
flutter clean
flutter pub get