Where is the Dart SDK Path
Today I want to run flutter-folio on my machine, but it has some errors, I am trying to solve the problems, one of the problem is it report…
Today I want to run flutter-folio on my machine, but it has some errors, I am trying to solve the problems, one of the problem is it report that the Dart SDK is not configured.
The IDE will suggest us to download the Dart SDK, or setup the Dart SDK path, I already install the flutter, it contains the Dart SDK inside, I will show the Dart Path for both install Dart SDK separately or use the SDK inside flutter.
Install Dart SDK
If we install the Dart SDK with brew command like below:brew install dart
After install the dart with the command above, in my env, the dart version is 2.17.0
, the Dart SDK path is /usr/local/Cellar/dart/2.17.0/libexec
.
Use Dart SDK inside flutter
Flutter already contain Dart SDK inside, so we can set the Dart SDK path to the path inside flutter.
The Dart SDK path inside flutter is: $FLUTTER_HOME/bin/cache/dart-sdk
, the $FLUTTER_HOME
is the path where we install the flutter.