xgqfrms / dart

dart for flutter
https://dart.xgqfrms.xyz/
MIT License
1 stars 0 forks source link

dart SDK install #1

Open xgqfrms opened 5 years ago

xgqfrms commented 5 years ago

dart SDK install

https://dart.dev/get-dart

Mac

$ brew tap dart-lang/dart
$ brew install dart
$ brew upgrade dart
$ brew info dart

options

 $ brew unlink dart
 $ brew install dart
#  brew switch dart <version>
$ brew switch dart 2.4.1
xgqfrms commented 5 years ago

stagehand

https://dart.dev/tutorials/server/get-started

$ pub global activate stagehand
$ mkdir demo && cd demo

$ stagehand console-full
$ pub get

$ dart bin/main.dart
$ dart2aot bin/main.dart bin/main.dart.aot

$ dartaotruntime bin/main.dart.aot

$  time dartaotruntime bin/main.dart.aot
xgqfrms commented 4 years ago

zip

$ dart --version

# Dart VM version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "macos_x64"
xgqfrms commented 4 years ago

dart upgrade bug

https://www.cnblogs.com/xgqfrms/p/13111137.html