How to read this guide
Four visual cues
Bold text is something you click or tap on the screen.
Command box: type or paste exactly, then press Enter. Use the Copy button.
Green shows the result you should get.
Orange tells you what to do if something fails.
Pasting into PowerShell
Ctrl + V also works in the newer Windows 11 terminal. Follow the steps in order and finish each one before starting the next.
Summary of software
Eight things to set up, in this order
| # | Software | Where to get it | Why you need it |
|---|---|---|---|
| 1 | Windows Developer Mode | Built into Windows | Lets Flutter install add-on packages |
| 2 | Git | git-scm.com/download/win | Needed to download Flutter |
| 3 | Flutter SDK | github.com/flutter/flutter (via Git) | Builds the app |
| 4 | Android Studio | developer.android.com/studio | Android tools (SDK, NDK) |
| 5 | Node.js (LTS) | nodejs.org | Needed for Firebase tools |
| 6 | Firebase CLI | Installed by a command | Log in to Firebase |
| 7 | FlutterFire CLI | Installed by a command | Connect the app to Firebase |
| 8 | Google account + Firebase project | console.firebase.google.com | Online database and login |
Windows settings
Turn on Developer Mode
Lets Flutter install the add-on packages it needs.
- Click the Start button (Windows logo) at the bottom of the screen.
- Type Developer settings. Do not press anything else.
- Click Developer settings in the results (or press Enter). Settings opens.
- Find Developer Mode and click the toggle on its right so it turns On.
- If Windows asks “Turn on Developer Mode?”, click Yes.
- Wait a few seconds, then close Settings.
Version control
Install Git
Git is needed to download Flutter.
2ADownload
- Open your web browser (Chrome or Edge).
- Click the address bar, type git-scm.com/download/win and press Enter.
- 64-bit Git for Windows Setup starts downloading by itself. If not, click that link.
- Open the file named like Git-2.xx.x-64-bit.exe from Downloads.
2BInstall 1–2 min
- “Allow this app to make changes?” Click Yes.
- Licence screen: click Next.
- Keep clicking Next on every screen without changing any option: location, components, Start Menu, editor, branch name, PATH, SSH, line endings, terminal and so on.
- On the screen with the Install button, click Install.
- Click Finish. You may untick “View Release Notes”.
Flutter SDK
Install Flutter
Flutter builds the app. You download it with Git, then tell Windows where it is.
3ADownload Flutter using PowerShell 3–10 min
- Click Start, type PowerShell, and click Windows PowerShell. A blue or black window opens.
- Create a folder called src on drive C:.
- Move into that folder.
- Download Flutter. You will see “Cloning into flutter...” and “Receiving objects: 45%”. Do not close the window.
Command for item 2
mkdir C:\srcCommand for item 3
cd C:\srcCommand for item 4
git clone https://github.com/flutter/flutter.git -b stable3BTell Windows where Flutter is (PATH)
- Click Start and type environment variables.
- Click Edit the system environment variables. System Properties opens.
- At the bottom right, click Environment Variables...
- In the top box, “User variables for (your name)”, click once on Path so it turns blue.
- Click Edit... below that top box. Do not click “New...” here.
- In the list window, click New on the right.
- On the blank line, type exactly C:\src\flutter\bin and press Enter.
- Click OK on this window, then OK on Environment Variables, then OK on System Properties.
User variables for (your name)
System variables
Items 4–5: select Path in the top box, then click Edit...
Items 6–8: New, type the folder, Enter, then OK three times.
3CCheck that Flutter works first run 3–5 min
- Close PowerShell completely (click the X). The PATH change only works in a newly opened window.
- Click Start, type PowerShell, and open Windows PowerShell again.
- Run the command. The first run downloads more files, so be patient.
flutter --versionPS C:\> flutter --version
Flutter 3.xx.x • channel stable
Framework • revision ...
Engine • revision ...
Tools • Dart 3.xx.x
Android tools
Install Android Studio
Provides the Android SDK and NDK that Flutter builds with.
4ADownload and install about 1 GB
- Go to developer.android.com/studio.
- Click the green Download Android Studio button.
- Tick the box agreeing to the terms, then click Download Android Studio again.
- Double-click android-studio-...-windows.exe. Click Yes if asked.
- Welcome: Next. Choose components: leave all ticked, Next.
- Install location: Next. Start Menu folder: Install.
- When finished, Next. Leave “Start Android Studio” ticked and click Finish.
4BFirst-time setup wizard 10–20 min
- Asked about importing settings? Choose Do not import settings, OK.
- Welcome screen: Next.
- Choose Standard, Next.
- Pick any colour theme, Next. Verify settings: Next.
- Licence screen: click each item on the left (for example android-sdk-license) and click Accept for each.
- When all are accepted, click Finish. Wait for downloads, then Finish again.
4CInstall the extra tools Flutter needs
- On the Welcome screen click More Actions (three dots), then SDK Manager.
- Click the SDK Tools tab.
- Bottom right: tick Show Package Details.
- Tick Android SDK Command-line Tools (latest).
- Expand NDK (Side by side) and tick one version (the newest is fine). Write the number down.
- Apply, OK, Accept if a licence appears, Next.
- When it says Finished: Finish, OK, then close Android Studio.
4DCheck which NDK version was installed
Open PowerShell and run this, replacing <your-username> with your Windows username.
dir C:\Users\<your-username>\AppData\Local\Android\sdk\ndk4EOnly if the first build says “NDK not found”
- Open your project folder in PowerShell, for example cd C:\src\projects\myapp.
- Open the build file in Notepad with the first command.
- Find the ndkVersion line near the top, inside the “android” section.
- Select it and replace it with the exact folder name from 4D, in quotation marks.
- Press Ctrl + S to save, then close Notepad.
Open the file
notepad android\app\build.gradle.ktsFind this line
ndkVersion = flutter.ndkVersionReplace it with (your own number)
ndkVersion = "30.0.16248370"JavaScript runtime
Install Node.js
Needed to install the Firebase tools in Step 6.
- Go to nodejs.org and click LTS (Recommended For Most Users).
- Double-click the downloaded .msi file in Downloads.
- Welcome: Next. Tick I accept the terms in the License Agreement, Next.
- Destination folder: Next. Custom setup: Next.
- “Tools for Native Modules”: leave the box unticked, Next.
- Install. Click Yes if Windows asks. Then Finish.
- Close PowerShell if it is open, and open it again.
Check it
node --versionCommand-line tools
Install the Firebase and FlutterFire tools
Firebase CLI logs you in to Firebase. FlutterFire CLI connects the app to Firebase.
1 · Firebase CLI 1–3 min
npm install -g firebase-tools2 · FlutterFire CLI, when the prompt appears again
dart pub global activate flutterfire_cliLines starting with “Resolving dependencies” and “Downloading” are normal. A yellow warning about PATH at the end is fixed next.
PATHAdd the FlutterFire folder
- Click Start, type environment variables, click Edit the system environment variables.
- Click Environment Variables...
- Top box: click once on Path, then Edit...
- Click New and type exactly %LOCALAPPDATA%\Pub\Cache\bin
- Press Enter, then OK on all three windows.
- Close PowerShell and open it again.
LOGINLog in to Firebase
- In PowerShell run firebase login.
- Asked about collecting usage information? Type n and press Enter (or y, your choice).
- Your browser opens. Click your Google account, or sign in.
- Click Continue or Allow on each screen.
- At “Firebase CLI Login Successful”, close the tab and go back to PowerShell.
firebase loginPS C:\> firebase login ? Allow Firebase to collect usage information? n Waiting for authentication... ✔ Success! Logged in as your-email@gmail.com
Firebase console
Create a Firebase project
The online database and login your app will use.
7ACreate the project about 30 s
- Go to console.firebase.google.com and sign in with your Google account.
- Click Create a project (or Add project).
- Type a name, for example my-first-app, and click Continue.
- If it shows an AI assistance option, leave it as it is and click Continue.
- Turn the Google Analytics switch OFF, then click Create project.
- When you see “Your new project is ready”, click Continue.
7BTurn on login (Authentication)
- Left menu: Build, then Authentication.
- Click Get started.
- Under “Sign-in method” click Email/Password.
- Switch the first Enable toggle on. Leave “Email link” off.
- Click Save.
7CCreate the database (Firestore) about 1 min
- Left menu: Build, then Firestore Database.
- Click Create database.
- If asked for an edition, choose Standard, then Next.
- Choose the closest location. For India: asia-south1 (Mumbai). This cannot be changed later. Next.
- Choose Start in production mode and click Create.
- Wait until the empty database screen appears.
All set
Your workspace is ready
About
CA Tirth Shah
Partner, B.H. Mangarolia & Co.
Developer of Tally ScrutinyQuestions about this setup or Tally Scrutiny? Get in touch through any of these.