Installing Flutter On Your Computer In Just 5 Minutes
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:
- Open Start Menu and Search PowerShell.
- Run PowerShell as administrative by Right Click.
- 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.
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 π
Thank You! It's Working Fine