Dart & Flutter === References: Dart: https://book.flutterchina.club/chapter1/dart.html Flutter: https://appcoda.com.tw/flutter-introduction/ https://flutter.dev/docs/get-started/install/macos Dart === - var - `var t;` - `t = 1000;` // not able to change var type anymore - dynamic - `dynamic t;` - `t = 1000;` - `t = "Hello";` // still can change var type - `.lenth` - Object - `Object t;` - `t = 1000;` - `t = "Hello";` // still can change var type - const - `const PI = 3.14` - run while compiling - final - `final PI = 3.141592653589` - run when it needed - (function) -  -  -  -  - Future - `.then` -  - `.catchError` -  - `.whenComplete` -  - `.wait` -  > avoid "Callback Hell": > - future > - async/await  - async/await *//語法糖* -  - Stream -  Flutter === - installation: https://flutter.dev/docs/get-started/install - check: `flutter doctor` > It doesn't matter if you already installed flutter plug-in in your Android Studio but `flutter doctor` didn't detect correctly. > Or you can try this: `ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up