I see that in the pubspec the Dart SDK version is specified/constrained but is there anywhere to specify the Flutter SDK version? Maybe I’m missing something obvious but coming from other tech stacks like Java/Gradle I believe normally SDK versions are explicit?
What got me thinking about this is that I’m using Codemagic and have my Flutter version at "default" but I can’t even tell what that is from their docs or their build logs.
2
Answers
Look like it's easy to limit it like this - I just missed it in the doc.
If I say I need ^4.0.0 then I get a meaningful error:
You can get that from your terminal just run
flutter --version
, this will print out your current flutter SDK and dart SDK versions.the result should be similar to this