How to install flutter on Linux Ubuntu 18.04 Bionic?
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:
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.