FLUTTER Installation
FLUTTER
This tutorial will show how to set up an environment for developing Flutter applications.
Flutter Installation
➔ There are some steps to follow to create a Flutter learning environment. This is a very simple and step-by-step process. Once the Flutter learning environment is ready, the Flutter code and examples in this tutorial can be tried out without any problems.
➔ Before proceeding with the Flutter installation, make sure that the computer system meets the requirements. Check the official Flutter website to check the latest system requirements.
Install the Flutter SDK.
Visit Flutter official website and download Flutter SDK from https://docs.flutter.dev/get-started/install.
Select Windows Installer
Download Flutter SDK.
When the download is complete, extract the zip file and place it in the desired installation location for example C:\src\flutter.
Extract Flutter SDK.
Now flutter commands can be issued in different ways a) by setting environment path variable, b) by set path='path to bin' command c) by issuing command directly from bin folder.
Set the system environment path to the flutter bin directory to run flutter commands in the Windows console.
Open Computer Settings -> Advanced System Settings -> Advanced -> Environment Variables.
Environment Variables.
Go to User variables section ->click new button. set variable name: path and variable value C:\src\flutter\bin -> OK -> OK -> OK.
We can see the report of how many problems are solved for Flutter development using the flutter doctor command. This will fix an issue after installing the Flutter SDK.
After solving all the issues (a. Installing android studio, b. Installing android SDK, c. Installing devices, d. Installing VS Code etc.) the report should look like this.
After solving all the problems the report should look like this.
Install Android Studio.
Visit Android official website and download Android Studio from https://developer.android.com/studio/.
Download Android Studio
Click agree with terms and conditions.
Open downloaded executable file to start installation.
Check Android Virtual Device, Click Next.
Select installation location (default is fine).
Click Install.
When installation complete, Click Next.
Click Finish.
Select Do not import settings, Click OK.
Android Studio Setup Wizard, Click Next.
Select install type standard, Click Next.
Verify Settings, Click Next.
Accept License Agreement for both android-sdk- and intel-android-extra-, click Finish
Please wait until Finish.
Click Finish.
Select plugin, select marketplace then search for flutter and click install.
Click Install dart required plugins.
Select Project, Click on New Flutter Project.
Select Flutter, Set Flutter SDK path, Click Next.
Select Project name with smaller case(use underscore for multiple words) and location and Click Finish.
Run Android Emulator.
Click on Device Manager icon at top-right corner of the editor.
Select Phone, Select Pixel2, Click Next .
Select API, Click download.
New wizard open and Click Finish when done.
Click Finish.
Click on run icon(or select main.dart file, right click then select Run main.dart) to run the application.
Please wait (minimum about 1 to 10min) until "Running gradle task assembleDebug" complete.
Flutter Application run on emulator.
Finally Check flutter doctor.
Run flutter doctor in the command line.
Install Android SDK Command-line tools, Google USB Driver and HAXM if not installed already.
Install android license agreement and accept by flutter doctor --android-licenses command in command-line. Now flutter doctor command shows issues are resolved.