Mobile — Flutter

Getting Started

Get your machine ready once — Flutter SDK, PATH, and an editor — then seven commands take you from a fresh clone to the app running on a device.

Prerequisite 1 of 3

Install and configure your own Flutter SDK

The Flutter SDK is yours to set up. The template doesn't install one, pin one, or pick a version for you — it uses whatever Flutter SDK you have configured on your machine. Any version works as long as it satisfies the environment: sdk: constraint in the template's pubspec.yaml. Check what you have first:

flutter --version

It prints both a Flutter and a Dart version — the pubspec.yaml constraint is on the Dart version. If yours is inside that range, skip to Prerequisite 2. If the command isn't found, install the SDK. First make sure Git is installed (Git for Windows; on macOS, xcode-select --install; on Linux, your package manager) — Flutter needs it. Then:

OSHow to install
WindowsDownload the SDK zip from the official install page and extract it to a folder without spaces or special permissions — Flutter suggests %USERPROFILE%\develop, giving C:\Users\<you>\develop\flutter. Not C:\Program Files.
macOSDownload the SDK zip for your chip from the official page and extract it to ~/develop, giving ~/develop/flutter. Homebrew also has a community-maintained cask: brew install --cask flutter. For iOS builds you also need Xcode and CocoaPods. Flutter is phasing out Intel Mac support, so future releases will need Apple Silicon.
LinuxDownload the tarball from the official page and extract it to ~/develop, giving ~/develop/flutter — or sudo snap install flutter --classic (published by the Flutter team).

Shortcut on any OS: install VS Code and its Flutter extension (Prerequisite 3), then run Flutter: New Project from the command palette and choose Download SDK — it clones the SDK into a folder you pick.

Working on several Flutter projects with different versions? Optional: install FVM (dart pub global activate fvm) and run fvm use <version> inside the project, so each project gets the SDK you pick without changing your global one.

Prerequisite 2 of 3

Set Flutter up globally

Add the SDK's bin folder to your PATH so flutter and dart work from any terminal, in any folder.

OSAdd to PATH
WindowsStart → search Edit environment variables for your account → under User variables, select Path → Edit → New → add %USERPROFILE%\develop\flutter\bin (your extract path + \bin). Close and reopen every terminal and your editor.
macOSzsh (the default shell): echo 'export PATH="$HOME/develop/flutter/bin:$PATH"' >> ~/.zshenv, then open a new terminal. (Homebrew installs do this for you.)
Linuxbash: echo 'export PATH="$HOME/develop/flutter/bin:$PATH"' >> ~/.bashrc (zsh: ~/.zshenv), then open a new terminal. (Snap installs do this for you.)

Then verify the whole toolchain in one go:

flutter doctor
flutter doctor --android-licenses

flutter doctor lists anything still missing — Android SDK, Xcode, a connected device — with the fix for each. The second command accepts the Android SDK licences, which Android builds need.

Prerequisite 3 of 3

Choose and install an IDE

Either editor works with this template — pick one based on how you like to work:

VS Code — a lighter, faster editor that most Flutter developers use day to day. Install it from code.visualstudio.com, then add the Flutter extension from the Extensions view (it installs the Dart extension too). The Android SDK is not included — get it via Android Studio or the command-line tools.

Android Studio — a full IDE with the Android SDK, emulator manager, and profiling tools built in. Install it from developer.android.com/studio, then go to Settings → Plugins and install Flutter (it adds Dart too). The Android SDK comes with it, via SDK Manager.

You'll want Android Studio installed even if you code in VS Code — it's the simplest way to get the Android SDK and an emulator. Install it once, let it set up the SDK, then code in whichever editor you prefer. Claude Code runs in both (VS Code extension, JetBrains plugin, or any terminal).

Installation

Get started in minutes

  1. Clone the template. Clone this repository (or use it as a template) and open the project root in your editor. git clone <repo-url> your_app
  2. Generate platforms. Creates the Android, iOS, Web, and other platform folders needed to actually run the app. flutter create .
  3. Rename the package. Change the default project name to your own, both in the code and in the Android/iOS app settings. flutter_app_template → your_app
  4. Install dependencies. Downloads all the packages this project needs. flutter pub get
  5. Generate code. Creates the auto-generated files needed by the database (Drift) and state management (Riverpod). dart run build_runner build --delete-conflicting-outputs
  6. Configure Firebase. Only required when using the Firestore datasource. flutterfire configure
  7. Run the app. Starts the app on your emulator, simulator, or a connected device. flutter run