FletApp
Renders another Flet app in the current app, similar to HTML IFrame, but for Flet.
Inherits: LayoutControl
Properties
app_error_message- Template message to display when the app fails to load.args- Optional dictionary of arguments to pass to the Flet app.assets_dir- Base location for assets referenced by the embedded app.boot_screen_name- Name of the boot screen to show while the embedded app starts up.boot_screen_options- Options for the boot screen, passed through to the boot screen widget.force_pyodide- Whether to force the use of Pyodide.reconnect_interval_ms- Delay, in milliseconds, between reconnection attempts.reconnect_timeout_ms- Total time to try reconnecting.url- Flet app URL, e.g.
Events
on_connect- Fires when the client allocates an in-processdart_bridgechannel for this embedded app (url="dartbridge://").on_error- Called when a connection or any unhandled error occurs.on_python_output- Fires once per stdout/stderr write inside the embedded Pyodide app.
Properties
app_error_messageclass-attributeinstance-attribute
app_error_message: str | None = NoneTemplate message to display when the app fails to load.
Use {message} placeholder to include the error message
and {details} to include error details.
argsclass-attributeinstance-attribute
args: dict[str, Any] | None = NoneOptional dictionary of arguments to pass to the Flet app.
assets_dirclass-attributeinstance-attribute
assets_dir: str | None = NoneBase location for assets referenced by the embedded app. On web this
is a URL prefix joined with relative src values (e.g. on
Image/Lottie/Markdown); on desktop it is a filesystem path.
boot_screen_nameclass-attributeinstance-attribute
boot_screen_name: str | None = NoneName of the boot screen to show while the embedded app starts up.
When None, the built-in "flet" boot screen is used. Custom boot screens
are provided by extensions; see the
boot screen docs.