How to Install Flutter on Linux in Few Steps

open book3 minutes read



How to Install flutter on Linux in few Steps ###




Sometimes it seems really difficult to set up a suitable environment in order to perform or learn a particular task. For example, if you want to cook chicken or bush meat, the more difficult part is the cleaning than the actual cooking. This also applies to other domains. Do you have some trouble setting up your environment in other to start learning a new tool? Then you are in the right place today I will explain to you how to install Flutter on Linux in just a few steps. If you are don not know what flutter is or if you are not familiar with this tool here is an introduction to flutter. Feel free to read and share your impressions.

There are many ways to install Flutter, you can Snap or you can go through the manual installation. Don’t worry I will provide both ways so you can choose the one that suits you.

How to install Flutter using snap

The simplest way to install Flutter on Linux is through the snap command. Thanks to some distributions of Linux such as KDE Neon, Manjaro, Solus 3 and above, Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 16.04.4 LTS (Xenial Xerus), Ubuntu 20.04 LTS (Focal Fossa) come with snap pre-installed. But if you don’t have Snap installed don’t worry just install it and then run the command below to install Flutter.

gun@gun-Latitude-E6430:~$ sudo snap install flutter --classic

Once it’s installed run the following command in order to display your Flutter SDK path.

flutter sdk-path

How to install Flutter manually

If you do not desire to use Snap or if you can’t use Snap, just follow these steps in order to get set.

1) Download the installation bundle from the link below. Make sure you get the latest stable release of the Flutter SDK

2) Extract the file in the desired location, for example:

gun@gun-Latitude-E6430:~$ tar xf ~/Downloads/flutter_linux_3.7.10-stable.tar.xz

Alternatively, you can skip these two steps and install from the GitHub repository with the following command

gun@gun-Latitude-E6430:~$ git clone https://github.com/flutter/flutter.git

3) Next you should add the flutter tool to your path:

gun@gun-Latitude-E6430:~$ export PATH="$PATH:`pwd`/flutter/bin"

Note that this command sets your PATH variable for the current terminal window only. If you will like to set the path permanently you can follow these steps.

Now if you have successfully performed the above steps then you should be ready to use the flutter command

4) Finally run the flutter doctor command to make sure all the dependencies needed are installed:

gun@gun-Latitude-E6430:~$  flutter doctor

Like the article? Please share or subscribe to get more updates from Learndevtools


Share on



Author: Learndevtools

Enjoyed the article? Please share it or subscribe for more updates from LearnDevTools.