This guide walks developers through the complete setup of Flutter on their systems, with clear and detailed steps for Linux (Ubuntu), Windows, and macOS environments. Whether you're just starting out or need to reconfigure your environment, this step-by-step setup ensures you have a stable and working Flutter development setup.
Before installing Flutter, ensure the following requirements are met:
- β A computer running Ubuntu (20.04 or newer), Windows 10/11, or macOS (Monterey or newer).
- β At least 8 GB of RAM (16 GB recommended for smooth Android emulator usage).
- β Minimum 10 GB free disk space.
- β Stable internet connection.
- β Git (required to clone the Flutter SDK).
- β IDE: Android Studio, Visual Studio Code, or IntelliJ IDEA.
Install the required packages to support Flutter and Android tools:
sudo apt update
sudo apt install git curl unzip xz-utils zip libglu1-mesa default-jdk -y
β οΈ default-jdkis required for Android builds and Gradle support.
cd ~
curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.1-stable.tar.xz
tar xf flutter_linux_3.22.1-stable.tar.xzπ This will extract to
~/flutter. You can move it to another folder if needed.
echo 'export PATH="$PATH:$HOME/flutter/bin"' >> ~/.bashrc
source ~/.bashrcπ‘ To make it permanent across sessions, itβs added to
.bashrc. If usingzsh, use.zshrcinstead.
- Download
.debinstaller: Android Studio for Linux - Install manually or using:
sudo apt install ./android-studio-*.deb-
Launch Android Studio and install the following:
- Android SDK
- SDK Tools: Platform Tools, Command Line Tools
- Emulator (optional)
flutter doctor --android-licensesPress y repeatedly to accept all licenses.
flutter doctor -vMake sure there are β across all tools.
- Visit Flutter for Windows
- Download
flutter_windows_<version>_stable.zip - Extract to:
C:\src\flutter(Do NOT install inProgram Filesor directories requiring admin access)
- Open Start Menu β Search Environment Variables
- Edit
Pathβ Add new:C:\src\flutter\bin - Click OK and restart Command Prompt
-
Download and install from developer.android.com/studio
-
Open and configure SDK:
- Install Android SDK, Command Line Tools
- Setup emulator if needed
Open CMD or PowerShell:
flutter doctor --android-licensesPress y for all prompts.
flutter doctor -vxcode-select --install
β οΈ Required for iOS builds and simulator support.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install --cask fluttercd ~
curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.22.1-stable.zip
unzip flutter_macos_3.22.1-stable.zipecho 'export PATH="$PATH:$HOME/flutter/bin"' >> ~/.zshrc
source ~/.zshrcπ Restart Terminal to apply changes.
sudo gem install cocoapodsRequired to build iOS apps.
flutter doctor -vRun:
flutter doctor -vYou should see β next to:
- Flutter
- Android toolchain (SDK & licenses accepted)
- Android Studio / IDE setup
- Device connected or emulator available
- iOS toolchain (on macOS)
If anything is β or
-
Use
flutter upgraderegularly to stay on the latest stable version. -
Use
flutter configto adjust settings like preferred editor or enabling web/macos support. -
Android devices: Enable Developer Mode and USB Debugging.
-
iOS devices (macOS only): Trust the Mac and register the device with Xcode.
-
IDEs:
- Install Flutter and Dart plugins.
- Configure emulator/device for quick testing.
- Flutter Official Installation Guide
- Flutter CLI Reference
- VS Code Flutter Setup
- Android Studio Flutter Plugin
Feel free to copy, fork, or improve this file. Happy building with Flutter! π