Skip to main content

flet-webview-all

flet-webview-all is a Flet extension that embeds web content in a Flet application. It wraps webview_all, a Flutter WebView implementation with support for Android, iOS, Linux, macOS, Windows, and the web.

The control is a ft.LayoutControl, so it can use Flet layout properties such as expand, width, height, and visible.

Installation

Install the published package from PyPI:

pip install flet-webview-all

Or add it to your application's pyproject.toml:

[project]
dependencies = [
    "flet>=0.86.5",
    "flet-webview-all",
]

To install the latest unreleased version directly from GitHub instead, use:

[project]
dependencies = [
    "flet>=0.86.5",
    "flet-webview-all @ git+https://github.com/zaim-tech/flet-webview-all.git",
]

For a local checkout during development, add the package as a path dependency instead. See the included example application for a working configuration.

Usage

import flet as ft

from flet_webview_all import FletWebviewAll


def main(page: ft.Page):
    page.title = "WebView example"
    page.add(
        FletWebviewAll(
            url="https://flet.dev",
            expand=True,
        )
    )


ft.run(main)

Render HTML directly

Pass a complete HTML document using html. The control loads url when it is set; otherwise, it uses html.

page.add(
    FletWebviewAll(
        html="""
        <!doctype html>
        <html>
          <body><h1>Hello from Flet</h1></body>
        </html>
        """,
        expand=True,
    )
)

Control properties

Property Type Default Description
url str | None None URL to load. When set, it takes precedence over html.
html str | None None Complete HTML document to render when url is not set.
allow_navigation bool True Allows navigation requests from the WebView.
zoom_enabled bool True Enables WebView zoom where the platform supports it.
javascript_enabled bool True Enables unrestricted JavaScript execution.
user_agent str | None None Overrides the WebView user-agent when provided.
debugging_enabled bool False Prints JavaScript console messages through Flutter's debug logger.

Use page.update() after changing a control property at runtime:

webview.javascript_enabled = False
page.update()

Platform support

Support is supplied by the underlying webview_all package:

Platform Minimum requirement / implementation
Android API 24+
iOS 13.0+ (WKWebView)
Linux webkit2gtk-4.1
macOS 10.15+ (WKWebView)
Windows Windows 10 version 1809+ (WebView2)
Web Modern browser

Platform WebView engines can differ in their capabilities. Test the settings your application relies on on each target platform.

Build the example

Flet extensions include Python and Flutter code. After changing the Flutter package, rebuild the example application; Python-only changes can be run without rebuilding once the extension has been built for the target platform.

cd examples/flet_webview_all_example
flet build windows -v

Replace windows with another supported Flet build target, such as macos, apk, ipa, or web. To run the example during Python development:

flet run

Development

The project follows Flet's extension structure:

src/flet_webview_all/                  Python control
src/flutter/flet_webview_all/          Flutter extension and webview_all dependency
examples/flet_webview_all_example/     Sample Flet application
docs/                                  Additional documentation

To add or update the Flutter dependency, work from the Flutter package directory:

cd src/flutter/flet_webview_all
flutter pub get

⚠️ Important Note

When running your app without building the extension using flet build ..., you will see an error box instead of the actual webview widget. To see the real widget, you must build the extension for your target platform.

References

License

See LICENSE.

Metadata

Release files for flet-webview-all 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flet-webview-all 0.1.4
File Size Uploaded
flet_webview_all-0.1.4.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flet-webview-all 0.1.4
File Interpreter ABI Platform
flet_webview_all-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / flet_webview_all-0.1.4.tar.gz

Download URL flet_webview_all-0.1.4.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
583f186cbea9fc66a135c810ab3b36b1433f9e3cbc834c3393ce1e34bfac52f1
BLAKE2b-256 checksum
How to use checksums
eb7bb1c7795daafa4d145a1604448752f2d820326f61a1ade0d5c0e5c75b880e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.

Transparency log

Release files / flet_webview_all-0.1.4-py3-none-any.whl

Download URL flet_webview_all-0.1.4-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
541012bbfc7794568ef4526feb535b64f8f95f90cbe076bd6493d690d23d8cd0
BLAKE2b-256 checksum
How to use checksums
2469dec0e3d6af241287c10b2146c29bfc9c58d52b70b3c74ae5264a2507a9eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page