Setup - splimter/Flutter GitHub Wiki

Gathering tools

Install the Java SDK:

Download and install the Java JDK.

Install the Android SDK and Emulator:

Download and install Android Studio, make sure to install the SDK (do not chose the pre/beta/last release version) and HAXM, after finishing make a virtual device in AVD manager.

From the Start search bar, type env and select Environment Variables,under system variable create a new ANDROID_HOME user variable that points to the path to your Android SDK.

Install the Dart SDK:

Download and install nodeJS.

Open the PowerShell and run this command (lunch as admin): (network connection is needed)

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

To use Chocolatey to install a stable release of the Dart SDK, run this command: choco install dart-sdk

To install a dev release, run this command: choco install dart-sdk --pre

To upgrade the Dart SDK, run this command (add --pre to upgrade the dev release): choco upgrade dart-sdk

Text Editor: Visual Studio Code, Sublime, Notepad++ are good Text Editor were u can edit your React Native project.

note: if you use Sublime press ctrl+shift+p, write install package then chose the dart plugin then fellow config instruction.

Online Dart Practice: DartPad.

Install the Flutter

Download the following installation bundle to get the latest stable release of the Flutter SDK.

Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK.

From the Start search bar, type env and select Edit environment variables for your account.

Under User variables check if there is an entry called Path:

    • If the entry does exist, append the full path to flutter\bin using ; as a separator from existing values.
    • If the entry does not exist, create a new user variable named Path with the full path to flutter\bin as its value.

Quick Start

Lunch the emulator on AVD Manager, when ready lunch the command flutter doctor, Fix the problems if founded, run flutter devices to check of the emulator work.

Make a project run the command:

flutter create <ProjectName>
cd <ProjectName>
flutter run