You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB
Markdown

# Setup Flutter
[Reference](https://flutter.dev/docs/get-started/install)
* Download [Flutter SDK](https://flutter.dev/docs/get-started/install)
* Unzip to `C:\tools`
* Add to environment path `C:\tools\flutter\bin`
* Install [Android Studio](https://developer.android.com/studio)
* Create Android Virtual Device (AVD). Ensure all SDK tools are up-to-date
* Add `vs code` plugin
* Flutter
## Create flutter app
Bootstrap a project
```sh
$ flutter create myapp
$ cd myapp
```
Launch AVD using Android Studio.
Run the app
```sh
// check AVD connectivity
$ flutter devices
// check dependencies are up-to-date
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.26.0-2.0.pre.200, on Microsoft Windows [Version 10.0.19042.685], locale en-SG)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1.0)
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (2 available)
• No issues found!
// run the app
$ flutter run
```
[Codelab Tutorial](https://flutter.dev/docs/get-started/codelab)