This tutorial will cover the step-by-step installation process of the Flutter Development Environment in the easiest possible way
Step 01: Install Chocolatey
Before Proceeding- If you're using a public network please install a VPN service like 1.1.1.1 to install
Open PowerShell from the start menu on your Windows in Administrator mode
Copy Run this command in Powershell
Get-ExecutionPolicy
If the execution policy is restricted run this command
Set-ExecutionPolicy AllSigned
Press "Y" to confirm
Copy and run the following command to install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Goto this link and find the official installation guide
https://chocolatey.org/install
Step 02: Install Dart
Before Proceeding- Make sure Chocolatey is installed successfully
Open the command prompt from the start menu in administrator mode
Copy and run the following command
choco install dart-sdk
This will install the Dart SDK and set the environment variable for you automatically.
Step 03: Install Flutter
Before Proceeding- Make sure Chocolatey is installed successfully
Open the command prompt from the start menu in administrator mode
Copy and run the following command
choco install flutter
This will install the Flutter SDK bundle and set the environment variable for you automatically.
After the Flutter installation is complete, Close the command prompt and open it again. Copy and run the following command
flutter doctor
Copy and run the following command
flutter upgrade
You can see a summary of the flutter installation status.
Step 04: Install Android Studio and Setup environment
This is needed for installing some tools and Virtual devices. We will use vscode afterward.
Go to the following link and download Android Studio. Accept the terms and conditions to download the Android Studio.
Download Android Studio & App Tools - Android Developers
After downloading install Android Studio.
Step 05: Accepting Android Licenses
Go to CMD from the start menu and run the following command
flutter doctor --android-licenses
Keep pressing "y" every time it asks for input.
Step 06: Install VS Code
If not installed
Go to the following link and download VS Code
Download Visual Studio Code - Mac, Linux, Windows
After downloading install vscode.
This will install the Dart SDK and set the environment variable for you automatically.
Step 05: Install Extensions in VS Code
Open VS Code
Extension 1 - Dart
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code
Extension 2 - Flutter
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
BOOM! 💥 Your Flutter Development Environment is Ready Now!
Open VS Code and Press Ctrl + Shift + P
Select/Search Create Flutter Project
Select Application
Select a Directory to save the project
Give a name to your project. The name should not contain any space and all small letter
After project creation successful Click on Debug and Run
This will take some time for the first time. And you will be able to see your first Android app with Hello World Screen