Flutter Setup
Step 1: Install Flutter SDK
Download the Flutter SDK:
Go to the official Flutter download page.
Select your operating system (Windows, macOS, or Linux).
Download the latest stable release of the Flutter SDK.
Note: - We are using 3.16.5 version and JAVA 17
Extract Flutter SDK:
After downloading, extract the .zip file to your desired installation location.
Step 2: Add Flutter to System Path
Right-click on ‘This PC’ (or ‘Computer’) and select ‘Properties’.
Click ‘Advanced system settings’ on the left.
Click the ‘Environment Variables’ button.
Under System variables, select Path, then click ‘Edit’.
Add the full path to the flutter/bin directory, e.g., C:\src\flutter\bin.
Click OK to save the changes.
Step 3: Install Dependencies
Install Android Studio for Android development, or another IDE like Visual Studio Code (VS Code).
Step 4: Verify Flutter Installation
Open a terminal or command prompt and run: flutter doctor
Step 5: Set Up an IDE
Android Studio:
Open Android Studio and install the Flutter plugin.
Go to Preferences/Settings → Plugins → Flutter → Install.
The Dart plugin should be installed automatically along with Flutter.
Step 6: Create Your First Flutter Project
Open a terminal or your IDE and run: flutter create my_first_app
Step 7: Run the App
To run your app on an emulator or connected device, execute: flutter run
Step 8: Additional Setup
Verify your setup: flutter doctor
Step 9: Updating Flutter
To keep Flutter updated, simply run: flutter upgrade
Android Studio
Step 1: Install Android Studio
Download Android Studio:
Go to the official Android Studio download page.
Choose the version appropriate for your operating system (Windows, macOS, or Linux).
Install Android Studio:
Windows: Run the installer and follow the instructions.
macOS: Open the .dmg file and drag Android Studio to your Applications folder.
Linux: Extract the .zip file and follow the setup instructions on the website.
Step 2: Install Flutter Plugin in Android Studio
Open Android Studio.
Install the Flutter Plugin:
Go to Preferences (macOS) or File > Settings (Windows/Linux).
In the Settings/Preferences window, go to Plugins.
Search for Flutter in the marketplace.
Click Install next to the Flutter plugin.
The Dart plugin will be installed automatically along with Flutter.
Restart Android Studio to apply the changes.
Step 3: Install Android SDK (If Not Already Installed)
Android Studio should automatically install the necessary SDKs during installation, but you can
manually check:
Go to Preferences (macOS) or File > Settings (Windows/Linux).
Navigate to Appearance & Behavior > System Settings > Android SDK.
Ensure that Android SDK and Android SDK Platform-Tools are installed.
Select SDK Platforms and check the latest version of Android (e.g., Android 12 or higher) for
your development needs.
Under SDK Tools, make sure that Android SDK Build-Tools and Android Emulator are
selected.
Step 4: Set Up an Android Device (Emulator or Physical Device)
Option 1: Set Up Android Emulator
In Android Studio, open the AVD Manager (Android Virtual Device).
o Go to Tools > AVD Manager.
Create a new virtual device by clicking Create Virtual Device.
Select a device (e.g., Pixel 3) and follow the on-screen instructions to finish the setup.
After the device is created, click the Play button to start the emulator.
Step 5: Set Up Flutter
Go to file -> Setting -> flutter = Add the path of your flutter SDK
Step 6: Create a New Flutter Project
Open Android Studio.
Select Start a new Flutter project from the welcome screen or navigate to File > New > New Flutter
Project.
Follow the wizard to create a new Flutter project:
Set the Project name, Flutter SDK path, and Project location.
Choose a Kotlin or Java project (based on your preference, Kotlin is the recommended
language for Android).
Finish the setup.
Step 7: Run the App on Emulator or Physical Device
Choose a Target Device:
In Android Studio, select the device/emulator you want to run the app on from the Device
Selector (top-right of the IDE).
Run the Flutter App:
Click the green Run button (or use Shift + F10).
The app will be built and launched on the selected emulator or physical device.
Step 8: Verify Setup
Run Flutter doctor to verify the setup