Flutter Setup
This section will give you brief about how can you setup flutter
Flutter setup for macOS
Follow the setps below and you will reach the destination for which you are trying.
Step 1: Download Flutter SDK
- Visit the official Flutter website flutter.dev.
- Download the Flutter SDK for macOS (Stable Channel).
Step 2: Extract the Flutter SDK
- Locate the downloaded
.zip
file and unzip it into your preferred location (e.g.,~/development/flutter
).
Step 3: Add Flutter to the PATH
- Open Terminal and run the following command to open the
.bashrc
or.zshrc
file
nano ~/.zshrc
- Add the following line at the bottom of the file (adjust the path if necessary):bash
export PATH="$PATH:`pwd`/flutter/bin"
-
Save the file by pressing Ctrl + X, then press Y, and hit Enter
-
Apply the changes by running:bash
source ~/.zshrc
Step 4: Install Development Tools
Option 1: Android Studio
- Download Android Studio from here.
- Follow the installation instructions.
- Open Android Studio, go to Preferences > Appearance & Behavior > System Settings > Android SDK, and ensure Android SDK is installed.
- Use AVD Manager to set up an Android Virtual Device (AVD) to test your Flutter apps.
Option 2: Visual Studio Code
- Download and install Visual Studio Code from here.
- Open VS Code and go to the Extensions Marketplace.
- Search for and install the Flutter and Dart extensions.
- These extensions allow you to create, debug, and run Flutter apps within VS Code.
Step 5: Flutter Doctor
- Open Terminal and run:
flutter doctor
- This command checks your setup and lists any missing tools or configurations.
Follow this video to install flutter on macOS