- You should have at least one of the supported IDE listed below:
-
Download Flutter SDK from here.
-
Extract the Flutter SDK:
- Linux terminal:
cd ~/[destination_Directory] tar xf ~/[source_Directory]/flutter_linux_v1.0.0-stable.tar.xz
- Linux terminal:
-
Create the " .bash_profile " file:
- Navigate to your Home directory:
- Linux terminal:
cd $Home
- Create new file:
- Linux terminal:
touch .bash_profile
- Navigate to your Home directory:
-
Add Flutter path to you current path:
-
Linux:
Add this line to the .bash_profile file using nano or any text editor.
export PATH=~/Downloads/flutter/bin:$PATH
-
-
Update current path:
- Linux terminal:
source $HOME/.bash_profile
- Linux terminal:
-
To verify and check dependencies, run the following command:
- Linux terminal:
flutter doctor
- Linux terminal:
- Once you verfied that flutter is accessable and installed. Start your prefered IDE and install the flutter extension.
- If you do not install the extension, the flutter doctor command will detect that your IDE does not support Flutter.
- If you install the flutter extension, the flutter doctor will detect that too.
- The .bash_profile file does not have an extension.
- If you restart your device, you might lose access to the flutter directory. Just apply Step #4 again and you should be good to go.