Skip to main content

Installation Guide

This guide walks you through a complete environment setup — from installing Flutter to running GreenCart on a real device or emulator.

:::tip Already have Flutter installed? Skip straight to the Quick Start → and be running in under 5 minutes. :::


At a Glance

StepWhat You'll Do
1Install Git
2Install Flutter SDK
3Install Android Studio
4Set Up Android SDK
5Run Flutter Doctor
6Set up Emulator or Device
7Install VS Code + Extensions

Step 1 — Install Git

Git is required to manage your project files.

  1. Download Git from git-scm.com

Git Download Page

  1. Run the installer with the default settings — no changes needed.

  2. Verify the installation:

git --version

Expected output: git version 2.x.x

Git Version Check


Step 2 — Install Flutter SDK

  1. Download the Flutter SDK from flutter.dev

Flutter SDK Download

  1. Extract the zip to C:\flutter

Extract Flutter

  1. Add Flutter to your PATH:
    • Search for "Edit the system environment variables" in Windows Search
    • Click Environment Variables
    • Under System Variables, select PathEditNew
    • Add C:\flutter\bin and click OK

Add Flutter to PATH

  1. Open a new terminal and verify:
flutter --version

Flutter Version Output


Step 3 — Install Android Studio

Android Studio provides the Android SDK, emulator, and build tools needed by Flutter.

  1. Download from developer.android.com/studio

Android Studio Download

  1. Run the installer and follow the setup wizard with default settings.

  2. On first launch, Android Studio will download required SDK components — let it complete.

Android Studio SDK Download

note

After installation, open Android Studio → SDK Manager and make sure Android SDK Platform-Tools and at least one SDK Platform (API 34+) are installed.


Step 4 — Set Up Android SDK

After installing Android Studio, you need to configure the Android SDK:

  1. Open Android Studio

  2. Go to More Actions (or Configure) → SDK Manager

Open SDK Manager

  1. Select the SDK Tools tab

  2. Check Android SDK Command-line Tools (latest)

Select Command-line Tools

  1. Click ApplyOK to install
note

This step is required for Flutter to properly detect your Android toolchain.


Step 5 — Run Flutter Doctor

flutter doctor checks your entire environment and tells you exactly what's missing.

flutter doctor

Flutter Doctor Command

A fully healthy output looks like this:

[✓] Flutter (Channel stable, 3.22.x, Dart 3.x)
[✓] Android toolchain – develop for Android devices
[✓] Android Studio (version 2024.x)
[✓] VS Code (version 1.9x.x)
[✓] Connected device (1 available)
[✓] Network resources

Flutter Doctor Output

:::warning Common Issues

IssueFix
Android licenses not acceptedRun flutter doctor --android-licenses and accept all
Xcode not found (macOS)Install Xcode from the Mac App Store, then run sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
CocoaPods missing (macOS)Run sudo gem install cocoapods
flutter not foundMake sure C:\flutter\bin is in your PATH and you opened a new terminal
:::

Step 6 — Set Up an Emulator or Device

You need a device to run the app. Choose one option:

  1. Open Android Studio
  2. Click Device Manager (icon in the right sidebar or top toolbar)

Open Device Manager

  1. Click Create Device

Create Device Button

  1. Select a hardware profile (e.g., Pixel 8) → Choose a system image (API 34+) → Click Finish

Select Device Profile

  1. Click the ▶ Play button to launch the emulator

Emulator Running


Step 7 — Install VS Code + Extensions

VS Code is the recommended editor for Flutter development.

  1. Download VS Code from code.visualstudio.com

VS Code Download

  1. Install and launch VS Code.

  2. Open Extensions (Ctrl+Shift+X) and install the following:

ExtensionPurpose
FlutterCore Flutter support (debugging, run, hot reload)
DartDart language support
Flutter Widget SnippetsCode snippets for common widgets
Flutter Extension Install

Flutter Extension

Dart Extension Install

Dart Extension

Additional Extensions

All Extensions Installed