i have been using flutter recently and i really wanted to use Jaguar for my project. But here is the catch, the flutter sdk brought dart with version 2.0.0-dev-58.0 but jaguar said they need dart sdk with version 2.0.0-dev-65.0
Okay, so i get myself dart with sdk version of 2.1.0-dev.1.0, but my vscode can't seem to recognize that i have installed the sdk.
Any ideas on how to change that?
It's quite easy if you use VSCode:
mkdir ~/flutter_dev
cd ~/flutter_dev
git clone https://github.com/flutter/flutter.git .
dart.flutterSdkPath
setting:"settings": {
"dart.flutterSdkPath": "/Users/youruser/flutter_dev"
}
See more info in Dart Code - Quickly Switching Between SDK Versions
The Dart Code
plugin has a setting dart.sdkPath
The location of the Dart SDK to use for analyzing and executing code. If blank, Dart Code will attempt to find it from the PATH environment variable. When editing a Flutter project, the version of Dart included in the Flutter SDK is used in preference.
There's also dart.sdkPaths
which allows quick switching between alternatives.
For Flutter projects, use dart.flutterSdkPath(s)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With