Skip to content

Instantly share code, notes, and snippets.

@veerendra2
Last active August 21, 2023 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veerendra2/a55069ab55db896a4adb453fb898f649 to your computer and use it in GitHub Desktop.
Save veerendra2/a55069ab55db896a4adb453fb898f649 to your computer and use it in GitHub Desktop.
Flutter Development Setup in Windows

Flutter Development Setup on Windows

1. Download and install dart

https://dart.dev/get-dart

choco install dart-sdk
  • Add dart-sdk path in environment variables

2. Download and install flutter

https://docs.flutter.dev/get-started/install/windows

  • Download latest flutter zip from here and extract to a location
  • Add flutter path in environment variables

3. Download and install Android SDK

https://developer.android.com/studio

Necessary for Android app development

  • Download Android Studio IDE from here(which comes with SDK management tool) and install.
  • Open Android Studio, go to Settings -> Language and Frameworks -> Select Android SDK -> Click SDK tools tab -> Check Android SDK Command-line tools

4. Download and install Visual Studio

https://visualstudio.microsoft.com/downloads/

Necessary for Windows app development

  • Download Visual Studio Install from here
  • Once wizard is open, select "Desktop development with C++", keep the recomended packages checked and click "Install"

5. Configure flutter

  • Update SDK path in flutter config. Open windows powershell and run below
    > flutter config --android-sdk E:\tools\Sdk
    
  • Accept Android Licence by running below command in powershell
    > flutter doctor --android-licenses
    
  • Once done, run flutter doctor in window powershell to verify configuration
    PS C:\Users\veere> flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.22621.2070], locale en-IN)
    [√] Windows Version (Installed version of Windows is version 10 or higher)
    [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    [√] Chrome - develop for the web
    [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.6.5)
    [√] Android Studio (version 2022.3)
    [√] VS Code (version 1.80.2)
    [√] VS Code, 64-bit edition (version 1.80.1)
    [√] Connected device (3 available)
    [√] Network resources
    • No issues found!
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment