Installation¶
FletWebviewAll ships as a Flet extension. Add it to your app's dependencies and Flet will build the platform-native extension the first time you run or package your app.
Add the dependency¶
In your pyproject.toml:
dependencies = [
"flet-webview-all @ git+https://github.com/yourusername/flet-webview-all",
"flet>=1.0.0",
]
Or, once published on PyPI:
Import it¶
Platform prerequisites¶
Different platforms need different runtime pieces before the control will render. See Platform notes for the full list — the most common one to check first is Windows, which requires the WebView2 runtime to be installed on the machine. For Linux, install the WebKitGTK 4.1 development/runtime package before building:
The Linux plugin installs the required GtkOverlay automatically, so you do
not need to modify linux/runner/my_application.cc.
Next step¶
Continue to the quickstart to load your first page.