Skip to main content

WebRenderer

TBD

Inherits: enum.Enum

Properties

AUTOclass-attributeinstance-attribute

CANVAS_KITclass-attributeinstance-attribute

SKWASMclass-attributeinstance-attribute

Usage Example

You can explicitly set what renderer to use when running a Flet program in web mode using the web_renderer parameter of the ft.run.

import flet as ft

def main(page: ft.Page):
...

ft.run(main, view=ft.AppView.WEB_BROWSER, web_renderer=ft.WebRenderer.CANVAS_KIT)