run

Start a Fluid GUI app.

This is meant to be the easiest way to launch a Fluid app. Call this in your main() function with the node holding your user interface, and that's it! The function will not return until the app is closed.

void main() {

    run(
        label("Hello, World!"),
    );

}

You can close the UI programmatically by calling remove() on the root node.

The exact behavior of this function is defined by the backend in use, so some functionality may vary. Some backends might not support this.

  1. void run(Node node)
  2. void run(Node node, FluidEntrypointBackend backend)

Parameters

node Node

This node will serve as the root of your user interface until closed. If you wish to change it at runtime, wrap it in a NodeSlot.

Meta