What is Flutter and installation of flutter on Ubuntu 22.04

Saikalyan
2 min readApr 1, 2023

--

Flutter is an open-source mobile application development framework created by Google. It allows developers to build high-performance, natively compiled applications for mobile, web, and desktop platforms using a single codebase. Flutter uses the Dart programming language, which was also created by Google, and provides a rich set of pre-built widgets and tools for building beautiful and responsive user interfaces.

One of the key advantages of Flutter is its “hot reload” feature, which allows developers to see changes they make to the code immediately reflected in the app without having to restart the entire application. This makes the development process faster and more efficient.

Flutter has gained popularity in recent years because of its ability to create visually stunning and highly performant applications with a single codebase. It is used by companies such as Alibaba, Google, and eBay, among others, and is considered a top choice for building mobile applications.

Flutter logo

Install Flutter on ubuntu 22.04

Before installing flutter on your System or laptop, Update your system by typing the above :

Consider this as the 1st Step of whole process

Sudo apt update

Next,

  1. Download the Flutter SDK from the official website: https://flutter.dev/docs/get-started/install/linux
  2. Extract the downloaded file and move the extracted flutter folder to a desired location. For example, you can move it to the /opt directory by running:
sudo tar xf flutter_linux_2.8.0-stable.tar.xz -C /opt/ 

3. Add the flutter tool to your path by adding the following line to your ~/.bashrc file:

export PATH="$PATH:/opt/flutter/bin"

Alternatively, you can add it to the system path by creating a new file called flutter.sh in the /etc/profile.d/ directory and adding the following line:

export PATH="$PATH:/opt/flutter/bin"

4. Run source ~/.bashrc to apply the changes to your current session, or restart your terminal.

5. Run flutter doctor to verify that Flutter has been installed correctly and to check for any additional dependencies that may need to be installed.

6. If the flutter doctor command shows that some dependencies are missing, you can install them using the package manager. For example, to install the required libraries for Android development, run:

sudo apt-get install -y lib32stdc++6 libstdc++6 libcurl4-openssl-dev libglu1-mesa

That’s it! You should now have Flutter installed on your Ubuntu system and be ready to start developing your own Flutter applications.

--

--