Favourite List
Nothing Added.

Installing Flutter On Your Computer In Just 5 Minutes

Set Up Flutter

Flutter is a mobile app development SDK created by Google. It allows you to develop apps for Android and iOS using a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source. Setting up Flutter for development can be a little tricky, In this tutorial, we will go over how to set up Flutter and create your first app.

Install Package Manager: 

Chocolatey is a package manager for Windows that allows you to install software and updates on your computer using a command-line interface. It's similar to apt-get on Linux or homebrew on Mac. Chocolatey is open source and free to use.

To install Chocolatey, follow these steps:

  1. Open Start Menu and Search PowerShell.
  2. Run PowerShell as administrative by Right Click.
  3. Now run the following command:
  

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))



Paste the copied text into your shell and press Enter. Wait a few seconds for the command to complete then Restart your Computer. 

Install Flutter and Android SDK:

Now time to install Flutter and Other necessary tools like Java and Android SDK. We will not install Android studio to install Flutter. Simply open CMD and run the following command:


  
choco install flutter dart-sdk jdk8 android-sdk -y

It will download everything for you. It will take sometime to download flutter because it is almost 780MB in size. After successfully installing it, let's restart your computer and go to Final step.


Final Step:

We reach our last step to complete the environment. Time to setup sdk manager and command line for compiling our app. Open Command Prompt run the command one by one.

         
sdkmanager --install "cmdline-tools;latest"


         
sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.3"


Finally,

Accept all Liscence by hitting the command below and then Press Y one by one:

flutter doctor --android-licenses

Everything caught up ! let's test out environment. Run " flutter doctor " see the magic, we have successfully installed Flutter SDK without any error, We can now code Flutter on Visual Studio Code. VS Code IDE download link provided end of the tutorial, If any error occurs, please comment below.

Visual Studio Code Download



Conclusion:

Hope guys you found the easiest method of installing latest flutter on your pc without any problem. It's just take less then 5 minutes if we compromise the downloading time. Thank you, Happy Coding 😊

Next Post Previous Post
Feels like
1 Comments
  • Orkitt
    Orkitt April 23, 2022 at 9:39 PM

    Thank You! It's Working Fine

Add Comment
comment url