Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase. This guide will show us how to correctly set up our Windows PC so that we may run a Windows desktop application.
- Install Git for Windows
2. Install Flutter via Git with dynamic version. Open Windows Powershell and type:
git clone https://github.com/flutter/flutter.git -b stable
3. Adding the System Environment Variables and Flutter Doctor.
4. Install Android Studio
5. Configure Flutter Windows Desktop. Open Windows Powershell and type:
flutter
Switch to flutter channel ‘master’:
flutter channel master
upgrade:
flutter config
Currently, there are no configurations set. At the command line, perform the following command to enable Win32 desktop support:
flutter config --enable-windows-desktop
If we run flutter config
once more, we should see this:
After that, execute flutter doctor
once more to download all necessary packages. As you can see, we encounter multiple issues:
1st issue: cmdline-tools components is missing
2nd issue: Android license status unknown
In Windows powershell, run:
flutter doctor --android-licenses
and then accept all licenses.
3rd issue: Visual Studio – develop for Windows
6. Run flutter doctor
one last time to check if there are still issues.