Learn how to set up your development environment to run, build, and deploy Flutter apps for the Windows desktop platform.

Set up tooling

#

With Visual Studio, you can run Flutter apps on Windows as well as compile and debug native C and C++ code.

Note that Visual Studio is an IDE separate from Visual Studio Code and only supported on Windows.

  1. Install Visual Studio

    If you haven't done so already, follow the Microsoft guide to install and set up Visual Studio.

    If you've already installed Visual Studio, update it to the latest version.

  2. Set up Visual Studio workloads

    When the Visual Studio installer prompts you to choose workloads, select and install the Desktop development with C++ workload.

    If you already installed Visual Studio, follow the Microsoft guide to Modify Visual Studio workloads.

Validate your setup

#
  1. Check for toolchain issues

    To check for any issues with your Windows development setup, run the flutter doctor command in your preferred terminal:

    flutter doctor -v

    If you see any errors or tasks to complete under the Windows version and Visual Studio - develop Windows apps sections, complete and resolve them, then run flutter doctor -v again to verify any changes.

  2. Check for Windows devices

    To ensure Flutter can find and connect to your Windows device correctly, run flutter devices in your preferred terminal:

    flutter devices

    If you've set everything up correctly, there should be at least one entry with the platform marked as windows.

  3. Troubleshoot setup issues

    If you need help resolving any setup issues, check out installation and setup troubleshooting. Depending on your issue, also check out Microsoft's guide on Visual Studio troubleshooting.

    If you still have issues or questions, reach out on one of the Flutter community channels.

Start developing for Windows

#

Congratulations! Now that you've set up Windows desktop development for Flutter, you can continue your Flutter learning journey while testing on Windows or begin expanding integration with Windows.