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

  1. Visit the official Flutter website flutter.dev.
  2. Download the Flutter SDK for macOS (Stable Channel).

Step 2: Extract the Flutter SDK

  1. Locate the downloaded .zip file and unzip it into your preferred location (e.g., ~/development/flutter).

Step 3: Add Flutter to the PATH

  1. Open Terminal and run the following command to open the .bashrc or .zshrc file
nano ~/.zshrc
  1. Add the following line at the bottom of the file (adjust the path if necessary):bash
export PATH="$PATH:`pwd`/flutter/bin"
  1. Save the file by pressing Ctrl + X, then press Y, and hit Enter

  2. Apply the changes by running:bash

source ~/.zshrc

Step 4: Install Development Tools

Option 1: Android Studio

  1. Download Android Studio from here.
  2. Follow the installation instructions.
  3. Open Android Studio, go to Preferences > Appearance & Behavior > System Settings > Android SDK, and ensure Android SDK is installed.
  4. Use AVD Manager to set up an Android Virtual Device (AVD) to test your Flutter apps.

Option 2: Visual Studio Code

  1. Download and install Visual Studio Code from here.
  2. Open VS Code and go to the Extensions Marketplace.
  3. Search for and install the Flutter and Dart extensions.
  4. These extensions allow you to create, debug, and run Flutter apps within VS Code.

Step 5: Flutter Doctor

  1. Open Terminal and run:
flutter doctor
  1. This command checks your setup and lists any missing tools or configurations.

Follow this video to install flutter on macOS