I was taking MDC101 flutter code lab. I cloned the starter project from the git repository as per the instructions but after clonning done, I executed flutter pub get
and it gave me the following error.
pubspec.yaml has no lower-bound SDK constraint.
You should edit pubspec.yaml to contain an SDK constraint:
environment:
sdk: '>=2.10.0 <3.0.0'
As per the error instructions I added the following in my
pubspec.yaml
And then I executed
flutter pub get
and it's working fine now.