Setting Up Flutter on Windows/Mac/Linux
🧰 System Requirements (All OSes)
Requirement Minimum Spec
OS Windows 10/11, macOS (Intel/Apple Silicon), Linux
Disk Space 2.8 GB (excluding IDE/tools)
Tools Git, IDE (VS Code, Android Studio), Java SDK (optional)
Mobile support Android SDK or Xcode (for iOS)
🪟 Setting Up Flutter on Windows
1. ✅ Download Flutter SDK
Go to: https://flutter.dev/docs/get-started/install/windows
Download the ZIP file, extract to a suitable location (e.g., C:\flutter).
2. ✅ Add to System Path
Add C:\flutter\bin to the system environment variables:
Open System Properties → Environment Variables
Edit the Path variable under System and add: C:\flutter\bin
3. ✅ Install Git for Windows
Install Git: https://git-scm.com/
Required for Flutter SDK to function
4. ✅ Install Android Studio (for Android Development)
Download and install Android Studio
During install: check Android SDK, Android SDK Platform-Tools, Android Virtual Device
Open Android Studio → SDK Manager to ensure SDK tools are installed
5. ✅ Run Flutter Doctor
Open Command Prompt and run:
bash
Copy
Edit
flutter doctor
This checks for dependencies and gives installation status.
🍏 Setting Up Flutter on macOS
1. ✅ Install Homebrew (if not already)
bash
Copy
Edit
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. ✅ Install Flutter SDK
bash
Copy
Edit
brew install --cask flutter
Or download from flutter.dev
3. ✅ Add Flutter to Path
If installed manually:
bash
Copy
Edit
export PATH="$PATH:[PATH_TO_FLUTTER_DIRECTORY]/flutter/bin"
Add that line to your .zshrc or .bash_profile.
4. ✅ Install Xcode (for iOS Development)
bash
Copy
Edit
xcode-select --install
Then install full Xcode from the App Store.
5. ✅ Run Flutter Doctor
bash
Copy
Edit
flutter doctor
🐧 Setting Up Flutter on Linux
1. ✅ Install Required Tools
bash
Copy
Edit
sudo apt update
sudo apt install git curl unzip xz-utils libglu1-mesa
2. ✅ Download Flutter SDK
bash
Copy
Edit
cd ~/development
curl -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_<version>.tar.xz
tar xf flutter_linux_<version>.tar.xz
Or download from flutter.dev
3. ✅ Add to PATH
Edit .bashrc, .zshrc, or .profile:
bash
Copy
Edit
export PATH="$PATH:$HOME/development/flutter/bin"
Then reload shell:
bash
Copy
Edit
source ~/.bashrc
4. ✅ Run Flutter Doctor
bash
Copy
Edit
flutter doctor
🛠️ Next Steps (All OS)
✅ Install VS Code or Android Studio
Install Flutter and Dart extensions for VS Code.
Set up emulator (AVD) or connect a physical device.
✅ Create Your First App
bash
Copy
Edit
flutter create my_app
cd my_app
flutter run
📦 Optional: Set Up for Web/Desktop
For Web: flutter config --enable-web
For Windows/Mac/Linux desktop apps:
bash
Copy
Edit
flutter config --enable-windows-desktop
flutter config --enable-macos-desktop
flutter config --enable-linux-desktop
Learn Flutter Training in Hyderabad
Read More
Comments
Post a Comment