Flutter SDK setup in Linux
What is Flutter?
Flutter is google’s framework used by developers for making Android and Ios apps single codebase. Nowadays we can make hybrid apps using flutter which means we can run flutter app on all the platforms, ie. Android, Ios, Web, and Desktop. But Web and Desktop version still in the testing mode.
Now we all know concerning Flutter. however, this text doesn’t focus on what’s Flutter, however, focuses on Flutter installation in Ubuntu UNIX operating system. The following steps are there to be followed for prospering installation.
To get started with Flutter on UNIX operating system, we should always get Flutter SDK, Android SDK, setup and configure Android Studio for Flutter, setup the Android Device or virtual device.
Lets Begin
- Download Android Studio for Linux, click here for download.
- Extract downloaded Android Studio file on your desired location, then open extracted folder up to
~
/android-studio/bin
then open a terminal on this location and type./studio.sh
for run android studio. - Now download Flutter for Linux, click here for download.
- Extract downloaded flutter file on your desired location.
- Open extracted flutter folder up to
~/flutter/bin
, then open terminal this location and type commandpwd
, this command will give you path of the current location.
navoki@navoki-Lenovo-Z50-70:~/Downloads/flutter/bin$ pwd /home/navoki/Downloads/flutter/bin
6. Copy this path.
Now we are updating flutter path in .bashrc file, be careful when working with this file because it contains all the system configuration.
7. Go to your home directory and open .bashrc
file, by default .bashrc
file hide for unhiding this file just press Ctrl + H
in-home directory.
Update your path as shown below, add this line at the bottom of your file and modify which you copied.
export PATH={path-of-sdk}/flutter/bin:$PATH
Configure Flutter with Android Studio
Now We configure Flutter with Android Studio for development. Open Android Studio and then got to settings or press Alt+Ctrl+S
. Tap plugins then search flutter as showing below images.
It will ask you to install dart plugin also when you install Flutter, Click yes for install Dart too.
Restart Android Studio after installation finish.
We have done all the steps which are needed to configure flutter with the Linux system. To check the configuration run below command. This command will show available flutter updates or any other activities which should be done.
Run flutter doctor to check the configuration.
Now create new project and make your first app, you can look navoki.com for more tutorials