quick start flutter environment
parent
77ef036cf5
commit
00c594ca77
@ -0,0 +1,34 @@
|
|||||||
|
# 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
|
||||||
|
```
|
||||||
|
|
||||||
Loading…
Reference in New Issue