Quickstart¶
Load a URL¶
import flet as ft
from flet_webview_all import FletWebviewAll
def main(page: ft.Page):
page.add(
FletWebviewAll(
url="https://www.example.com",
expand=True,
)
)
ft.run(main)
expand=True lets the webview fill the available space — see
Inherited properties
for the full set of layout properties it picks up from LayoutControl.
Or render inline HTML¶
Use html instead of url when you don't have a page to fetch — for
offline content, generated reports, or local documentation:
Only one of url / html is active at a time; see
url and html
for how to switch between them at runtime.
Where to next¶
- Add navigation, JavaScript, and lifecycle callbacks — see the control reference.
- Grab a ready-made recipe — see Examples.
- Wire up camera/microphone access — see Permissions.