Flutter Part 1: Install

flutter App

esther

Make sure that you unzip the flutter folder into the right directory.
If you’d like to move the flutter folder after ran flutter, you might see the same error as mine. 🙈


Install (macOS)

  1. Download Flutter SDK and unzip
  2. Add path to .zshrc

    export PATH="$PATH:[PATH_OF_DIRECTORY]/flutter/bin"
  3. Pre-download tools

    flutter precache

iOS

  1. Install xcode

    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    sudo xcodebuild -runFirstLaunch
  2. Set up Simulator

    open -a Simulator
  3. Create a flutter project and test with the device

    flutter run

android

  1. Download and install Android Studio
  2. Create a Virtual Device (Android Studio > Tools > AVD Manager)
  3. Run with the device

    flutter run

Errors

After moved flutter folder, you might see the error below:

Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the ‘flutter’ tool is currently executing will be used instead.

  1. Update path in .zshrc
  2. Add .packages into .gitignore
  3. Recreate .packages

    flutter packages get