DEV Community

Full Stack Hacker
Full Stack Hacker

Posted on • Edited on

13 1

Install Flutter on Debian

Run System update

Let’s first run the system update command before installing Flutter, this will update all the already installed packages on our Debian Linux. In addition to refreshing the system repo cache.

sudo apt update

Install Dependencies

There are few tools and libraries required to use Flutter on Linux such as Debian. Hence, before moving further use the below-given command to install them:

sudo apt install curl file git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev

Download Latest Flutter SDK

Next, we need the Flutter SDK tarball file. That we can easily download from its official webpage. Here is the link. Visit the page and select the latest version of Flutter to download.

Install Flutter on Debian

Extract files:

cd ~ 
tar xvf ~/Downloads/flutter_linux_*-stable.tar.xz

Add the flutter to the environment path

nano ~/.bashrc
export PATH="$PATH:~/flutter/bin"

Once you confirmed the folder where you have extracted Flutter is in the Environment path, let’s verify Flutter command-line tools are working perfectly:

flutter --version

Check any missing dependency using- flutter doctor

Well, although we have completed the installation successfully along with the required dependencies. However, still in the case, something is missing to complete the setup, it can be pointed out using the Flutter’s doctor command:

flutter doctor

Get Chrome browser

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

Install Android Studio on Debian

Open your browser and Download Android Studio for Linux. Visit the official page and then select the Tarball file.

cd Downloads
tar xvf android-studio-*-linux.tar.gz
sudo mv android-studio /opt/
/opt/android-studio/bin/./studio.sh

To create Android Studio icon, please follow the steps here: Link

Install Android SDK Command-line Tools

On your Android Studio Project, click on the File and then "Settings". Select Appearance & Behavior > System Settings > Android SDK > SDK Tools

Check the box given for “Android SDK Command-line Tools (latest)” and then press the OK button.

Add command-line tools to your environment

nano ~/.bashrc
export PATH=$PATH:~/Android/Sdk/cmdline-tools/latest/bin
source ~/.bashrc

Agree to Android Licenses

To use Flutter, the user must agree to the licenses of the Android SDK platform. Here is the command for the same:

flutter doctor --android-licenses

Check Again Flutter requirements

Let’s check again that Flutter dependencies are completed and the setup is successful.

flutter doctor

Set up an editor

To set up the editor, go to Android Studio open any project, click on the File, and then select Settings. There select “Plugins” and select Flutter to Install it.

Create Flutter Project

Now, create a New Flutter Project… Select Flutter and set the full path to its SDK. For that Just enter the path of the folder where you have extracted the Flutter.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay