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.
35 lines
615 B
Markdown
35 lines
615 B
Markdown
|
5 years ago
|
# 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) with API 29
|
||
|
|
* API 30 not supported
|
||
|
|
* 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
|
||
|
|
|
||
|
|
// run the app
|
||
|
|
$ flutter run
|
||
|
|
```
|
||
|
|
|