Install Flutter

Create Free Backend With Appwrite

Flutter Installation

There are multiple ways to install a flutter on your system. You can install Flutter on Windows, Mac, and Linux or run it from the browser. In this tutorial, you will learn easiest way to install a flutter on your system. If you got stuck somewhere, you can watch the video below to be more clear.

Requirements

  • Flutter SDK,
  • VS code or other editors like Intellij [We will use VS Code here].
  • Git [For Version Control].
  • Anrdoid Studio.

Flutter Windows Installation

Follow the below instructions to install a flutter on the windows operating system.

Steps:

  • Download Flutter sdk from here.
  • Extract or copy Flutter sdk to your C drive.
  • Setup path C:\flutter\bin to your environment variable. Watch the video below to be more clear.
  • Open the command prompt and type flutter –version to check it.
flutter --version
  • Install VS Code from here and add Dart and Flutter Extension.
  • Install Android Studio from here and add Android sdk.
  • Install Git from here for version control and to keep track of your code changes.
  • Open the command prompt and type flutter doctor to check and diagnose the setup of your flutter development environment.
 flutter doctor

Flutter Windows Installation Video

Watch this video to easily install a flutter on your windows operating system.

Flutter Mac Installation

Follow the below instructions to install Flutter on the Mac operating system.

Info

Note: You must install Xcode before installing Flutter.

Steps:

  • Download Flutter sdk from here.
  • Extract the file in the desired location.
  • Install VS Code from here and add Dart and Flutter Extension.
  • Install Android Studio from here and add Android sdk.
  • Open terminal and type:
nano ~/.zshrc

Paste below content into the file and replace path_to_flutter_directory with the real location of your Flutter SDK.

export PATH="$PATH:`path_to_flutter_directory`/flutter/bin"
Info

Note: Press CTRL + O to save the changes, then press Enter. After that, press CTRL + X to exit nano.

Flutter Mac Installation [Video]

Watch this video to easily install a flutter on your Mac operating system.

Flutter Linux Installation

To install a flutter on Linux, open your terminal and copy/paste the below commands. If you have any problem, you can watch the video below.

Steps:

  • Install VS Code and add Dart and Flutter Extension.
  • Type the following commands in terminal:
sudo apt install snapd
sudo apt update
sudo apt install -y curl git unzip xz-utils zip libglu1-mesa
sudo snap install flutter --classic
sudo snap install android-studio --classic
  • Open android studio and install latest command line tools and latest SDK tools.

Flutter Linux Installation Video

Watch this video to easily install a flutter on your Ubuntu operating system.

Check Flutter Installation

Open your command prompt and type flutter doctor. If you see everything is fine, then you are good to go.

Some Useful Commands

Command Description
flutter --help Show all available commands.
flutter create Create a flutter project.
flutter run Run the flutter project.

Run Flutter On Web

You can run the basic flutter program on your browser without installing any software. Dartpad is a web tool to write and run your flutter code.

Here is official flutter link to install flutter on your devices:

Can You Run Flutter From Mobile?

Yes, you can use DartPad to run simple flutter programs from your phone without installing any software. For bigger projects, using DartPad is not recommended.