add cross-platform WebView control backed by webview_all - #6836
Open
zaim-tech wants to merge 3 commits into
Open
add cross-platform WebView control backed by webview_all#6836zaim-tech wants to merge 3 commits into
zaim-tech wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a new cross-platform
WebViewcontrol backed bywebview_all.It supports:
webview_windowswebview_cefwebview_flutter_webThis extends Flet's current WebView support with Windows and Linux support.
The extension is already published independently as
flet-webview-allon PyPI. This PR integrates it into Flet as a built-in extension.Testing status:
flet build web, production build), WebView renders and loads content correctlywebview_all's existing implementation rather than verified results.Known limitation: On Web, loading cross-origin content that doesn't send a
Cross-Origin-Resource-Policyheader can be blocked when served with COEPrequire-corp(required for WASM builds with threading). This is a constraint ofwebview_all's Web implementation (iframe-based), not specific to this integration — native platforms are unaffected.Note on base branch: No active
release/v{version}branch was found at the time of opening this PR, so this targetsmaindirectly per the current repo state.Fixes #6530
Test code
Type of change
Checklist
website/sidebars.ymlfor breaking changes, removals, and deprecations, if applicable.Screenshots
Additional details
First-time contributor to Flet core — open to feedback on API naming/conventions for built-in extensions.
Current package exposes the control as
flet_webview_all.FletWebviewAll(separate import). Open to renaming/restructuring toft.WebView(...)or another convention if that better matches Flet's built-in extension naming.I currently maintain the
flet-webview-allGitHub repo and PyPI package independently. If this is accepted as a built-in extension, I'm happy to transfer the repo to theflet-devorg and/or the PyPI package (or addflet-devas a co-maintainer) — whichever integration pattern (monorepo package vs. standaloneflet-devrepo) the team prefers.Summary by Sourcery
Integrate the cross-platform
flet-webview-allextension into Flet as a built-in WebView control.New Features:
flet-webview-allextension with a cross-platformFletWebviewAllcontrol for displaying and interacting with web content on Windows, macOS, Linux, iOS, Android, and Web.Enhancements:
Build:
flet-webview-allin build dependencies and package publishing validation.CI:
Documentation:
Tests: