In order to run the app that you built in the previous recipe on a Windows Desktop, take the following steps:
- In a Command Prompt window, get to the project you completed in the first recipe in this chapter, and run this command:
flutter config -–enable-windows-desktop
- In the same window, run this command:
flutter devices
-
In the list of devices returned by the command, note that Windows (desktop) is now showing as a device.
-
Run the flutter doctor command, and note that Visual Studio – develop for Windows is showing, as shown in the screenshot:

If you don't see the Windows (desktop) device in the list, try closing and reopening your Command Prompt, then run the flutter devices command again.
- In Command Prompt, in order to create the Windows app, run this command:
flutter create .
- Run the app with your editor, or by calling this command:
flutter run –d Windows
- Note that the app runs correctly, and the books and...