Source: https://flutter.dev/docs/get-started/install/linux
Open terminal, go to home directory. cd ~
Create dev
directory and install flutter.
$ mkdir dev
$ cd dev
$ git clone https://github.com/flutter/flutter.git -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.