Setting Up Flutter on Windows/Mac/Linux
Setting Up Flutter on Windows, Mac, and Linux (Step-by-Step Guide)
Introduction
Flutter is Google’s open-source framework for building beautiful apps for mobile, web, and desktop using a single codebase.
If you’re new to Flutter and want to get started, you need to install it on your system.
This guide shows how to set up Flutter on Windows, Mac, and Linux — step-by-step.
Let’s begin!
Prerequisites (For All Platforms)
Before installing Flutter, make sure you have:
✅ A good internet connection
✅ Enough disk space (at least 2.5 GB for Flutter SDK)
✅ A text editor (VS Code or Android Studio recommended)
1. Setting Up Flutter on Windows
Step 1: Download Flutter SDK
-
Download the latest stable Flutter SDK
.zipfile. -
Extract it to a folder like
C:\flutter
π« Don’t install it in
C:\Program Files\(no admin rights needed)
Step 2: Update Your Path
-
Search for Environment Variables → Edit System Environment Variables
-
Under "System variables", select
Path→ Click Edit -
Click New and add:
C:\flutter\bin -
Click OK to save.
Step 3: Install Git (if not installed)
-
Download Git: https://git-scm.com
-
Install with default options
-
Git is needed for Flutter commands to work
Step 4: Run Flutter Doctor
Open Command Prompt and run:
This checks if everything is installed correctly.
It shows ✅ or ❌ for missing parts.
Step 5: Install Android Studio (Optional but Recommended)
-
Download from: https://developer.android.com/studio
-
During install, check:
-
Android SDK
-
Android Virtual Device
-
-
After install, run Android Studio → Install Flutter & Dart plugins
Step 6: Create Your First App
Done! π
2. Setting Up Flutter on Mac
Step 1: Download Flutter SDK
-
Download the latest stable
.zipfile -
Extract to a folder like:
/Users/yourname/flutter
Step 2: Update Your Path
Open your terminal and run:
Add this line:
Then save and run:
Step 3: Run Flutter Doctor
This shows if anything is missing like Xcode, Git, etc.
Step 4: Install Xcode
-
Go to the App Store
-
Install Xcode
-
After install, run:
Step 5: Install CocoaPods
Run:
Pods are needed for iOS apps.
Step 6: Install Android Studio (Optional)
Same as Windows.
Also install Flutter and Dart plugins.
Step 7: Create & Run Your App
You’re now ready to build iOS or Android apps! π
3. Setting Up Flutter on Linux
Step 1: Download Flutter SDK
-
Download the stable
.tar.xzfile -
Extract with:
Move it to a location like /home/yourname/flutter
Step 2: Update Your PATH
Edit your shell config file:
Add:
Save and apply:
Step 3: Install Required Tools
Run:
These tools are required for Flutter and Android SDK.
Step 4: Run Flutter Doctor
Fix any missing items shown.
Step 5: Install Android Studio
-
Download from: https://developer.android.com/studio
-
Install and open
-
Go to Plugins → Search for Flutter & Dart → Install
-
Configure SDK and emulator
Step 6: Create and Run App
You’re ready to build apps on Linux!
Bonus: Install VS Code (Optional on All Platforms)
-
Download from: https://code.visualstudio.com
-
Install Flutter and Dart extensions
-
Open your project folder
-
Run and debug apps easily
Conclusion
Setting up Flutter is easy on Windows, Mac, or Linux if you follow the right steps.
Here’s a quick checklist:
✅ Download Flutter SDK
✅ Add it to your PATH
✅ Install Android Studio (optional but helpful)
✅ Run flutter doctor to check setup
✅ Create and run your first app
Now you can build fast, beautiful apps for Android, iOS, web, and desktop using just one codebase.
Comments
Post a Comment