Flutter can also build desktop apps for Windows (along with Android, iOS, Web, Linux, macOS). Let me show you how to build a Windows .exe
application step by step
Step 1: Enable Windows Desktop Support
First, check if your Flutter installation supports Windows builds:
flutter doctor
You should see something like:
[√] Windows (desktop) • Windows version 10.x
If Windows is not enabled, run:
flutter config --enable-windows-desktop
Step 2: Create a Flutter Project
flutter create my_app
cd my_app
This creates a folder windows/
inside your project (it has native C++ code Flutter uses to build Windows apps).
Step 3: Run App on Windows
From your project folder:
flutter run -d windows
This will open your app as a native Windows desktop window.
Step 4: Build Release .exe
To generate a Windows executable (.exe):
flutter build windows
After build, your .exe
will be here:
build/windows/x64/runner/Release/my_app.exe
You can share this .exe
file (but if you want a proper installer like .msi
or `.exe setup wizard**, you’ll need to use a packaging tool — e.g. Inno Setup, NSIS, or MSIX Packaging Tool).
Step 5: Package as Installer (Optional)
- For quick sharing → just give the
.exe
file inside theRelease
folder. - For professional app distribution → package using MSIX (official Windows installer format).
Example command (if you install the msix tool):
flutter pub add msix
flutter pub run msix:create
This creates a Windows installer (.msix) you can double-click and install.
Now your Flutter app works like a real Windows application!