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.

Before you Begin

Ensure you have set up your machine.

How to test Desktop app

Testing the desktop app consists of the following steps:

1. Adding platforms

To add platform support:
  1. 1.
    Navigate to Setting and Integrations (
    ) from the Navigation Menu > Project Setup > Platforms.
  2. 2.
    Enable the platform that you want to support.
Enabling desktop platform

2. Make design adjustments (optional)

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.
Now you can also add responsive visibility on the standard FlutterFlow Navbar and AppBar.

3. Download code

4. Running app on desktop

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