How to setup Flutter in Windows
Install Git - https://git-scm.com/
Install Flutter SDK - https://docs.flutter.dev/get-started/install/windows/desktop?tab=download#install-the-flutter-sdk
- Downloaded file name will be similar to
flutter_windows_3.19.2-stable.zip
- Downloaded file name will be similar to
Copy the downloaded file and paste it to
C:\Users\{username}\Documents
Extract the file
- After extraction is complete, there will be a folder with the same name
Delete the file
Click the windows button and search "Edit the system environment variables"
-
Click "Environment Variables..." in the bottom right area
From "User variables for {username}" (first section)
Look for variable "Path"
If it doesn't exist, click "New..."
Write "Path" for variable name
Write
C:\Users\{username}\Documents\{flutter_sdk_folder_name}\flutter\bin
for variable valueClick "Ok"
Else, click "Edit..."
Click "New"
Write
C:\Users\{username}\Documents\{flutter_sdk_folder_name}\flutter\bin
Click "Ok"
Click "Ok"
-
Open "Command Prompt"
Run flutter doctor
- If step 6 was done properly, the command should run
Install "Android Studio" - https://developer.android.com/studio
Run Android Studio
Click "more actions" (or "tools" in the file bar if a project is already open)
Click "SDK Manager"
Check SDK with "API Level" = "34" (make sure it has a checkmark, not dash)
-
Click "SDK Tools"
Click "Apply"
- Accept & download all
Click "Ok"
Click "more actions" (or "tools" in the file bar if a project is already open)
Click "Device Manager"
Click "+"
Choose "Pixel 7 Pro"
Click "Next"
Choose system image with "API Level" = "34"
-
Click "Next"
Click "Show Advanced Settings"
-
Set internal storage to "2048MB"
-
"Finish"
From Android Studio, Click "New Flutter Project"
Make sure flutter sdk path is set.
- If not, it should be
C:\Users\{username}\Documents\{flutter_sdk_folder_name}\flutter
- If not, it should be
Click "Next"
- Choose the project name and location
Click "Create"
DONE