How to install flutter in ubuntu 18.04


Open terminal, go to home directory. cd ~
Create dev directory and install flutter.
$ mkdir dev
$ cd dev
$ git clone -b stable --depth 1

get currenct directory: $ pwd output: /home/{currrent-user}/dev

Add flutter path in ~/.bashrc file: export PATH="$PATH:/home/{currrent-user}/dev/flutter/bin"

Open new terminal:
pre-download development binaries: $ flutter precache. This will download some files.

Run $ flutter doctor to check dependencies.

Run $ flutter doctor --android-licenses and press y -> enter to accept licenses.