Comment on page
Testing On Desktop
This page guides you on testing your app on a desktop.
We allow you to develop a desktop app that can be run on a Windows, macOS, and Linux operating system.
Testing the desktop app consists of the following steps:
To add platform support:
- 1.Navigate to Setting and Integrations () from the Navigation Menu > Project Setup > Platforms.
- 2.Enable the platform that you want to support.

Enabling desktop platform
If you're creating a desktop-only application, setting the canvas size to desktop and building pages accordingly can work well. However, if you plan to target both mobile and desktop users, some design adjustments may be necessary to ensure that the UI is optimized for both platforms.
You can create separate widgets for different platforms and control their visibility using Responsive Visibility.
See how to run app on a desktop. Note that before running your app, you must select the target device (e.g., macOS).
To launch your application from the command line, enter one of the following commands:
flutter run -d windows
flutter run -d macos
flutter run -d linux

Running app on desktop
Last Updated Date: October 19, 2023