How to install flutter on Linux Ubuntu 18.04 Bionic?

Asim Zahid
2 min readDec 22, 2019

--

Flutter.dev

The best way to setup flutter on Ubuntu 18.04 is by following these commands.

If you have not installed git on your system, install it first by using this command.

sudo apt install git

then it is good to create a new folder for development, let’s say it “dev”

mkdir dev
cd dev
git clone https://github.com/flutter/flutter.git

Output:

git clone
export PATH="$PATH:`pwd`/flutter/bin" 

then

flutter precache
flutter precache result fig.1
flutter precache result fig.2

open Ubuntu Software from the menu and search Android Studio, install it. remember do not close the terminal.

after installing it, run in terminal.

flutter doctor --android-licenses

now run to check the status of the dependencies you need to install to complete the setup.

flutter doctor

The output would be similar to this

for detailed summary use

flutter doctor -v

result:

Congratulations you have successfully installed flutter on your machine.

Let me know what do you think of it. If this article helped you give it a clap. Thank you.

--

--

Asim Zahid
Asim Zahid

Written by Asim Zahid

I can brew up algorithms with a pinch of math, an ounce of Python and piles of data to power your business applications.

Responses (1)