Flutter Installation

Briefly explained the Prerequisities, Installation, and how to run the project on your local machine.

Prerequisites

  • Flutter SDK latest

  • Dart latest

  • JAVA 8 or above

  • Latest Android studio with NDK

  • Xcode (on macOS for IOS)

Installation

Make sure to download the following installation bundle to get the latest beta release of the Flutter SDK (for other release channels, and older builds, see the SDK archive page). If you need more info on how to set up a project, please follow Flutter Getting Started at Flutter official websites

Flutter SDK

Download the following installation bundle to get the latest release of the Flutter SDK (for other release channels, and older builds, see the SDK archive page. latest versions are given below for particular platform

Please follow the Flutter installation guide on their official website and use the latest versions.

Extract the file in the desired location :

In Window go to: 1. Extract the downloaded zip into the C:\Program Files\ 2. Locate the file flutter_console.bat inside the flutter directory. Start it by double-clicking.

In Linux and MACOS - Change the below version with your latest download version.

cd ~/development
tar xf ~/Downloads/flutter_linux_v1.7.8+hotfix.4-stable.tar.xz

Create a Demo Flutter Project:

In the android studio, you can find an option to create a new flutter project there you can select a flutter application, click on next there you can mention your project name click on next, enter your company domain click on finish .your flutter project gets created.

Create a simple, template Flutter app, using the instructions in Getting Started with your first Flutter app.

Tip: If you don’t see the “New Flutter Project” as an option in your IDE, make sure you have the plugins installed for Flutter and Dart.

You can install the plugins by following the below step:

Go to Android studio > File > Plugins > Install flutter > Install dart (this will download your flutter and dart files)

flutter create your_project_name

How to Run

Make sure you have installed Java JDK 8 or above, the latest version of the android studio, and flutter.

Open Android Studio, Click on Tools > Go to SDK manager there you click on all the checkboxes of different versions of SDKs you want your app to run on click on apply then click on finish. Run in Device or Emulator :

Before running this just make sure that you have installed all the packages inside your flutter project by following the below steps:

Open Android Studio, Click on Tools, Go to > AVD Manager > Create new Virtual device, click on next and it will display you with the options to choose the version, click on next and finish. That will create a Virtual device for you or alternatively you can use a physical device connect it to the system via cable make sure to turn USB debugging mode ON on the device before connecting it to the system. You can run it by selecting the device and clicking on the emulator option. Or you can also run it by using the below command called flutter run.

Open your terminal and navigate to the project folder and install plugins

$ flutter packages get

Once plugins are installed successfully you can run the app in Device with :

$ flutter run

Run flutter doctor:

$ flutter doctor

You may also face VT -X disabled error while running the emulator if your BIOS set up is incomplete (applicable for only windows user). So make sure that you will set the BIOS by following the below steps.

You can go to

System configuration >VT >Device configuration >Enable VT

If there is any issue apart from this please google it or if you do not find any solution please feel free to report us, we will look into it.

Last updated