This guide will walk you through setting up the development environment and running our Flutter project. Please follow each step carefully to ensure a smooth setup process.
- Prerequisites Installation
- Project Setup
- Running the Project
- Troubleshooting
-
Download Flutter SDK 3.22.3
- Visit: https://docs.flutter.dev/get-started/install
- Download Flutter 3.22.3 ZIP file
- Extract to
C:\src\flutter(recommended path)
-
Set up environment variables
- Add
C:\src\flutter\binto your system's PATH variable - Verify setup by running:
flutter --version
- Should show version 3.22.3
- Add
- Get git clone URL
- Visit: https://github.com/flutter/flutter
- Clone Flutter SDK from gitrepository
git clone https://github.com/flutter/flutter
- Setting Flutter 3.22.3 version: go to the flutter field
git fetch --tags git checkout 3.22.3
- Set Up Environment Variables
- Add
C:\src\flutter\binto your system's PATH variable - Verify setup by running:
flutter --version
- Should show version 3.22.3
- Add
-
Install Android Studio
- Download from https://developer.android.com/studio
- Run installer and complete setup wizard
- Install Android SDK
-
Install Required Plugins
- Open Android Studio → Settings/Preferences → Plugins
- Install:
- Flutter plugin
- Dart plugin
- Restart Android Studio
- Install VSCode from https://code.visualstudio.com/
- Install Extensions:
- Flutter
- Dart
- Open Android Studio
- Click on "Tools" → "Device Manager" or click the "Device Manager" icon in the toolbar
- Click on "Create Device" button
- Choose a device definition:
- Recommended: "Pixel 7" or newer for a phone device
- Select your preferred screen size and resolution
- Click "Next"
- Choose the Android version:
- Recommended: API 32 (Android 12.0)
- If not installed, click "Download" next to the system image
- Wait for download and installation to complete
- Click "Next"
- Verify the AVD Name and settings
- Click "Finish"
- Clone the project from our repository or donload the zip file and extract it.
- Use VSCode or Android Studio to open the file downloaded
- Route to the lib file
flutter pub get- Connect a device or start an emulator
- Run the project:
flutter run
- Release mode:
flutter run --release
Run the following command and ensure all checks pass:
flutter doctor-
SDK Version Mismatch
- Error: "Flutter SDK version mismatch"
- Solution: Ensure you're using Flutter 3.22.3
flutter --version
-
Missing Dependencies
- Error: "Running pod install..."
- Solution: Run
flutter pub get
-
Build Errors
- Clean and rebuild:
flutter clean flutter pub get flutter run
-
Environment Setup Issues
- Verify environment variables
- Check Android Studio and VSCode plugins
- Ensure Android SDK is properly installed