Installing Flutter
Setting up Flutter is easier than you might think. Head over to flutter.dev and download the SDK for your operating system. Whether you're on Windows, macOS, or Linux, there's a download waiting for you. Extract the zip file and add the flutter/bin directory to your system's PATH.
Once that's done, open your terminal and run the magic command:
flutter doctor
This little command checks everything you need and tells you exactly what's missing. It's like having a personal setup assistant. It'll show you which tools are installed and which ones still need your attention.
Setting Up Your Editor
For mobile development, you need either Android Studio or VS Code with the Flutter extension. Both work great — pick whichever you're more comfortable with. If you're going for iOS development, you'll also need Xcode, but that's Mac-only territory.
Flutter doctor will guide you through any missing setup step by step. Just follow its suggestions and you'll be good to go. Here's what a clean flutter doctor output looks like:
[✓] Flutter (Channel stable, 3.x.x)
[✓] Android toolchain - develop for Android devices
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] VS Code
[✓] Connected device (1 available)
[✓] Network resources
• No issues found!
Try it Yourself →
Your First Flutter Project
Creating a new Flutter project is a single command. Let's create one right now:
flutter create my_app
cd my_app
flutter run
That's it — three commands and your app is running on a simulator or connected device. Flutter even generates a starter project with a nice demo app so you can see something on screen immediately. The project structure is clean and organized, with a lib/main.dart file where your app starts.
Inside lib/main.dart, you'll find a simple counter app that demonstrates basic Flutter concepts. Play around with it, change some text, and see how quickly Flutter updates your app. This instant feedback loop is one of the best things about Flutter development.
Running on Different Devices
Want to see your app on a real Android device? Connect it via USB, enable developer mode, and run flutter run. For iOS, connect your iPhone, trust the computer, and do the same. Flutter handles the rest.
You can also run on the web with flutter run -d chrome. It's that simple. Your same code works everywhere — that's the Flutter promise.
// Check available devices
flutter devices
// Run on specific device
flutter run -d chrome
flutter run -d windows
flutter run -d macos
Try it Yourself →