Metadata-Version: 2.2
Name: flet-webview
Version: 0.1.0
Summary: WebView control for Flet
Author-email: Flet contributors <hello@flet.dev>
Project-URL: Homepage, https://flet.dev
Project-URL: Documentation, https://flet.dev/docs/controls/webview/
Project-URL: Repository, https://github.com/flet-dev/flet-webview
Project-URL: Issues, https://github.com/flet-dev/flet-webview/issues
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: flet>=0.25.2

# WebView control for Flet

`WebView` control for Flet.

## Usage

Add `flet-webview` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project.

## Example

```py

import flet as ft

import flet_webview as fwv

def main(page: ft.Page):
    wv = fwv.WebView(
        url="https://flet.dev",
        on_page_started=lambda _: print("Page started"),
        on_page_ended=lambda _: print("Page ended"),
        on_web_resource_error=lambda e: print("Page error:", e.data),
        expand=True,
    )
    page.add(wv)

ft.app(main)
```
