In the previous article, we covered Flutter, its benefits, and the basics of Stateless and Stateful widgets. Now it is time to put that knowledge into practice.
Setting up a development environment is often the most confusing step for beginners. PATH configuration, the Android SDK, and licenses can all cause errors when the setup is not done in the right order.
This guide walks through installing the Flutter SDK, configuring VS Code, and using Flutter Doctor to confirm that your environment is ready.
Prerequisites
Before downloading the Flutter SDK, make sure your system has these basic dependencies:
- Git: Required for managing Flutter versions and dependencies.
- A stable internet connection: Needed to download the SDK and the initial Android tools and dependencies.
Step 1: Download and Extract the Flutter SDK
Download the official package for your operating system. Visit flutter.dev and choose the stable SDK release for Windows, macOS, or Linux.
Avoid directories with restricted permissions, such as Program Files on Windows. Extract the zip file into your development directory:
- Windows: For example, C:\src\flutter (avoid C:\Program Files\).
- macOS/Linux: For example, ~/development/flutter.
Add Flutter's bin subfolder to your system PATH so you can run the flutter command from any terminal:
Windows: Open Edit the system environment variables → Environment Variables → edit Path under User Variables → add C:\src\flutter\bin.
macOS/Linux (Zsh/Bash): Add this line to ~/.zshrc or ~/.bashrc:
export PATH="$PATH:$HOME/development/flutter/bin"Then reload your terminal configuration by running source ~/.zshrc.
Step 2: Set Up Android Studio and the Android Toolchain
Even if you write code in VS Code, you still need Android Studio for the Android SDK, Platform-Tools, and emulator.
- Download and install Android Studio from the official Android developer website.
- Open Android Studio and go to SDK Manager from More Actions or Settings.
- In the SDK Tools tab, select Android SDK Build-Tools, Android SDK Command-line Tools (latest), Android Emulator, and Android SDK Platform-Tools.
- Select Apply and wait for the installation to finish.
Step 3: Configure Visual Studio Code
VS Code is a lightweight, fast editor with a mature ecosystem of Flutter extensions.
- Open VS Code.
- Open Extensions with Ctrl+Shift+X on Windows/Linux or Cmd+Shift+X on macOS.
- Find and install the official Flutter extension by Dart Code. It will install the Dart extension automatically.
- Optional but useful: install productivity extensions such as Error Lens for inline errors and Material Icon Theme for clearer file and folder icons.
Step 4: Verify the Setup with Flutter Doctor
This is the most important check for confirming that everything is connected correctly. Open a new terminal in VS Code or your system terminal, then run:
flutter doctorOn a first installation, you may see a warning for Android toolchain licenses. Resolve it with this command:
flutter doctor --android-licensesPress y (yes) to accept each license agreement.
Run flutter doctor again. Check that the main components—Flutter, Android toolchain, VS Code, and a connected device—show green check marks [✓].
Step 5: Start an Emulator or Connect a Physical Device
You have a few options for running the app:
- Android Emulator: In VS Code, press Ctrl+Shift+P or Cmd+Shift+P, type Flutter: Launch Emulator, and select an emulator created in Android Studio.
- Physical Android phone: Enable Developer Options and USB Debugging, then connect the phone to your computer with a data cable.
- macOS (iOS Simulator): If Xcode is installed, run open -a Simulator in the terminal.
Conclusion
Your Flutter development environment is now ready. With the SDK, Android toolchain, and VS Code verified by Flutter Doctor, you can focus on coding without setup issues getting in the way.
In the next article (Part 3), we will create a first project, explore the Flutter folder structure, and understand the main.dart file.


