Skip to content

IbrahimNM/Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Flutter

Getting Started

Prerequisites 📋

Installing 🔧

  1. Download Flutter SDK from here.

  2. Extract the Flutter SDK:

    • Linux terminal:
      cd ~/[destination_Directory]
      tar xf ~/[source_Directory]/flutter_linux_v1.0.0-stable.tar.xz
  3. Create the " .bash_profile " file:

    • Navigate to your Home directory:
      • Linux terminal:
      cd $Home
    • Create new file:
      • Linux terminal:
      touch .bash_profile
  4. 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
  5. Update current path:

    • Linux terminal:
      source $HOME/.bash_profile

Verification ✅

  • To verify and check dependencies, run the following command:

    • Linux terminal:
      flutter doctor

IDE extension

  • 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.

Notes ⚠️

  • 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.