In this tutorial, we will setup flutter and make basic application.
Your system must meet these requirements to install and run Flutter.
flutter_console.batinside flutter folder and start it with double click.
If you want to run Flutter commands from Windows prompt, you have to update your PATH environment variable.
flutter\binand separate with
flutter\binPath with the full path to
Run the following command to see if there are any dependencies need to install to complete the setup.
$ flutter doctor
This command checks your environment and displays report on terminal.
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.3.2, on Microsoft Windows [Version 10.0.16299.371], locale en-GB) [!] Android toolchain - develop for Android devices (Android SDK 25.0.3) X Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [√] Android Studio (version 2.3) X Flutter plugin version 12.1 - the recommended minimum version is 16.0.0 [√] IntelliJ IDEA Community Edition (version 2018.1) [!] Connected devices ! No devices available ! Doctor found issues in 2 categories.
Once you installed missing dependencies, run the
flutter doctor command again to verify setup.
You will need an Android device running Android 4.1(API level 16) or higher, to run and test Flutter app.
flutter devicescommand to verify that flutter recognizes your connected Android devices.
You can also use Android emulator to run and test Flutter app.To prepare Android emulater follow these steps:
flutter run. The connected device name is
Android SDK built for, where platform is the chip family, such as x86.
Flutter is supported by two plugins:
Flutterplugin powers Flutter developer workflows (running, debugging, hot reload, etc.).
Dartplugin offers code analysis (code validation as you type, code completions, etc.).
To install these:
Yeswhen prompted to install the Dart plugin.
Let's build a simple Flutter Hello World app.
myapp), and press Next
Flutter has ability to live update running app without restarting.Just click Hot Reload button to see changes.
Hey there! I'm an experienced Android developer and a geek interested in the newest technologies and trends.