Installation of Flutter & Dart

Requirements :
-Git for windows download from official site for running git commands
-Android emulator for executing your app  on virtual mobile machhine.You can install Android Studio for get emulator.
- Dart installer  very easy setup ( next next next  )

1-Download Flutter SDK

 There are 3 options of Windows , MacOS and Linux for downloading of Flutter SDK.for widnows you enter bellow command .You need to git for windows for the running git commands

git clone -b stable https://github.com/flutter/flutter.git
and download the flutter floder and move it on like bellow:
C:\src\flutter
navigate in flutter floder and copy the path

2-Update System Path



Windows search and type "env" here > 'Edit the system environment variables "















Click on the User Variables > Path and add below path :
C:\src\flutter\bin








3-Run flutter doctor

flutter doctor is a envirement checker command.

Open the windows command navigate to C:\src\flutter and run this command :
C:\src\flutter>flutter doctor
if you didnt install android output should be like below of the command
[-] Android toolchain - develop for Android devices
• Android SDK at D:\Android\sdk
✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ • Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.
If everything is clear the output  should like below  :
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.17134.950], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[!] Android Studio (version 3.4)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Community Edition (version 2018.2)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.22.2)
[!] Connected device
    ! No devices available
! Doctor found issues in 3 categories.
Which IDE should use for flutter?
You can use Android Studio or Jetbrains IDE for flutter.
I m using Visul Studio Code free IDE for development of flutter.It has very usefull plugins for using Flutter, Dart , Git.Besidess you can easily debug your code.

I will explain to VS Code  at another post.

Enjoy flutter

flutterondart

Yet another googled programming approach !flutterondart

0 comments: