Skip to content

FletApp

Inherits: LayoutControl

Renders another Flet app in the current app, similar to HTML IFrame, but for Flet.

Properties

Events

Properties#

app_error_message class-attribute instance-attribute #

app_error_message: str | None = None

Template message to display when the app fails to load. Use {message} placeholder to include the error message and {details} to include error details.

app_startup_screen_message class-attribute instance-attribute #

app_startup_screen_message: str | None = None

Message to display on the app startup screen.

args class-attribute instance-attribute #

args: dict[str, Any] | None = None

Optional dictionary of arguments to pass to the Flet app.

force_pyodide class-attribute instance-attribute #

force_pyodide: bool = False

Whether to force the use of Pyodide.

reconnect_interval_ms class-attribute instance-attribute #

reconnect_interval_ms: int | None = None

Delay, in milliseconds, between reconnection attempts.

reconnect_timeout_ms class-attribute instance-attribute #

reconnect_timeout_ms: int | None = None

Total time to try reconnecting.

show_app_startup_screen class-attribute instance-attribute #

show_app_startup_screen: bool = False

Whether to show the app startup screen.

url class-attribute instance-attribute #

url: str | None = None

Flet app URL, e.g. http://localhost:8550 or flet.sock.

Events#

on_error class-attribute instance-attribute #

on_error: ControlEventHandler[FletApp] | None = None

Called when a connection or any unhandled error occurs.