Install Flutter on Linux

Minimum System Requirement

Operating systems : Linux (64 bit)

Disk Available space : 600 MB

Tools : flutter depends on the following commands, ensure you have them on your system

  • bash
  • curl
  • file
  • git 2.x
  • mkdir
  • rm
  • unzip
  • which
  • xz-utils
  • zip

Go to https://flutter.dev/docs/get-started/install/linux#get-sdk and download the latest stable release

After successful download , run the following command to move the downloaded file to /opt folder.

sudo mv flutter_linux_2.2.2-stable.tar.xz /opt/

Next , navigate to /opt/ folder

cd  /opt/

Extract the file in /opt/ or your desired location.

sudo tar xf flutter_linux_2.2.2-stable.tar.xz

Add the flutter tool to your path

 export PATH="$PATH:flutter/bin"

Verify that the flutter/bin directory is now in your PATH by running:

echo $PATH

Your output should include flutter

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/simon/Android/Sdk/tools:/home/simon/Android/Sdk/platform-tools:/opt/flutter/bin:/opt/flutter/bin:/opt/flutter/bin:flutter/bin

running the which command again should show that the flutter and dart commands now come from the same directory.

which flutter dart
/path-to-flutter-sdk/bin/flutter
  /path-to-flutter-sdk/bin/dart

Go ahead and download android studio.after installation click on the configuration panel and select plugin.

Select flutter plugin

Next , you should see the option to create new flutter application.

You may be asked to select your SDK folder while creating your new flutter application. Select the flutter folder extract earlier.

If you have permission error while creating your your first flutter application , locate your flutter SDK folder and run the following command.

sudo chown -R simon ./flutter/*

and

sudo chown -R simon .*

swagasoft

Fully stack(MEAN) software engineer with over five years of experience participating in the complete product development lifecycle of successfully launched applications. Eager and willing to deliver mission- critical technology solutions.

View all posts by swagasoft →

Leave a Reply

Your email address will not be published. Required fields are marked *