dart for flutter
dart 2.3.2 dart 2.8.4 dart 2.9.1 / Flutter 1.20
https://dart.dev/tools/sdk/archive
https://dart.dev/tools/dart-vm
https://github.com/IOT-DSA/docs/wiki/Update-Dart-SDK
REPL & Playground
# install
$ brew tap dart-lang/dart
$ brew install dart
$ brew upgrade dart
$ brew info dart
$ dart --version
# install
# windows & user env
PUB_HOSTED_URL
https://pub.flutter-io.cn
# windows & system env & DART_SDK
DART_SDK
H:\Program Files\Dart-SDK\dart-sdk
# windows & system env & JDK (Open JDK)
JAVA_HOME
H:\JDK-12
# windows & system env & PATH
H:\Program Files\Dart-SDK\dart-sdk\bin
%JAVA_HOME%\bin
使用工具自动安装 Dart SDK 失败时,还可以手动安装。
手动添加 env
# windows & user env
PUB_HOSTED_URL
https://pub.flutter-io.cn
# windows & system env & DART_SDK
DART_SDK
# not work
H:\Program Files\Dart-SDK\dart-sdk
## OK
H:\Program Files\Dart-SDK\dart-sdk\bin
# windows & system env & JDK (Open JDK)
JAVA_HOME
H:\JDK-12
# windows & system env & PATH
H:\Program Files\Dart-SDK\dart-sdk\bin
%JAVA_HOME%\bin
$ dart app.dart
# Hello World!
# running a Dart file on the command line
$ dart --enable-asserts app.dart
https://www.dart-china.org/t/topic/480#heading--manual-install
include dart
https://flutter.dev/docs/get-started/install
https://flutter.dev/docs/get-started/install/macos
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos
https://github.com/flutter/flutter.git