You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a persistent error "WebView is not yet supported on this Platform!" when attempting to use the ft.WebView control in my Flet application on Windows 10. My goal is to embed interactive web content (such as maps or a web browser) directly within my Flet app's UI, specifically in a designated "companion display" area. I want to avoid launching external browser windows. Despite confirming that Microsoft Edge WebView2 Runtime is installed on my system, and having the latest Flet version, the ft.WebView control consistently fails with this error.
Environment:
Operating System: Windows 10 Pro (e.g., Build 19045.4412)
Python Version: 3.13.1
Flet Version: Name: flet Version: 0.28.3 Summary: Flet for Python - easily build interactive multi-platform apps in Python Home-page: https://flet.dev/ Author: Appveyor Systems Inc. Author-email: [email protected] License: Apache-2.0 Location: D:\atlas_flet\flet_venv\Lib\site-packages Requires: httpx, oauthlib, repath Required-by: flet-cli, flet-desktop, flet-webview flet-webview Python Package Version (from pip show flet-webview): Name: flet-webview Version: 0.1.0 Summary: WebView control for Flet Home-page: https://flet.dev/ Author: Author-email: Flet contributors [email protected] License: Location: D:\atlas_flet\flet_venv\Lib\site-packages Requires: flet Required-by:
Important Note:
flet_webview Dart/Flutter Package (from pub.dev): The latest version on pub.dev is 0.25.2 (as of June 2025). This is a significant discrepancy from the Python package version.
WebView2 Runtime: Confirmed installed on the system (tried to install MicrosoftEdgeWebView2RuntimeInstallerX86.exe, which indicated it was already present).
Troubleshooting Attempted:
Tried to upgrade flet-webview using pip install --upgrade flet-webview, but the version remained at 0.1.0, indicating it's the latest available on PyPI.
Verified WebView2 Runtime installation on Windows 10.
Tested with a minimal Flet app specifically for ft.WebView.
Checked pub.dev and noted the substantial version difference between the Python flet-webview package (0.1.0) and the Dart flet_webview package (0.25.2).
Additional Context / Hypothesis: My strong hypothesis is that the Python flet-webview package (PyPI version 0.1.0) is severely outdated and not compatible with the current Flet framework (0.28.3) and its underlying Flutter/Dart components, specifically the flet_webview Dart package. This version mismatch seems to be causing the platform support check to fail, as the Python binding likely cannot correctly interface with the newer Flutter-side WebView implementation. This issue prevents the crucial functionality of embedding web content within the Flet application, which is essential for my project (e.g., displaying maps or a full browser view in a companion display controlled by AI commands).
Code sample
defmain(page: ft.Page): page.title="WebView Test"page.vertical_alignment=ft.MainAxisAlignment.CENTERpage.horizontal_alignment=ft.CrossAxisAlignment.CENTERtry:
webview_control=ft.WebView(
url="https://flet.dev", # Or any other URL, e.g., "https://www.google.com/maps"expand=True,
height=400, # Or a flexible height in a layoutwidth=600, # Or a flexible width
)
content=webview_controlexceptExceptionase:
content=ft.Text(
f"Error initializing WebView: {e}\n"f"Is WebView supported on this platform? See console for details.",
color=ft.colors.RED_500,
size=18,
text_align=ft.TextAlign.CENTER
)
page.add(
ft.Column(
[
ft.Text("Flet WebView Test", size=24, weight=ft.FontWeight.BOLD),
ft.Container(
content=content,
width=600,
height=400,
border=ft.border.all(1, ft.colors.BLUE_GREY_400),
border_radius=10,
padding=10,
margin=20
)
],
horizontal_alignment=ft.CrossAxisAlignment.CENTER,
spacing=20
)
)
Error message
Expected Behavior: The ft.WebView control should render the specified URL (e.g., https://flet.dev or https://www.google.com/maps) within the Flet application window, leveraging the WebView2 Runtime on Windows.
Actual Behavior: The application window displays the text: "Error initializing WebView: WebView is not yet supported on this Platform!" The console output typically also shows the same or a similar error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am encountering a persistent error "WebView is not yet supported on this Platform!" when attempting to use the ft.WebView control in my Flet application on Windows 10. My goal is to embed interactive web content (such as maps or a web browser) directly within my Flet app's UI, specifically in a designated "companion display" area. I want to avoid launching external browser windows. Despite confirming that Microsoft Edge WebView2 Runtime is installed on my system, and having the latest Flet version, the ft.WebView control consistently fails with this error.
Environment:
Operating System: Windows 10 Pro (e.g., Build 19045.4412)
Python Version: 3.13.1
Flet Version: Name: flet Version: 0.28.3 Summary: Flet for Python - easily build interactive multi-platform apps in Python Home-page: https://flet.dev/ Author: Appveyor Systems Inc. Author-email: [email protected] License: Apache-2.0 Location: D:\atlas_flet\flet_venv\Lib\site-packages Requires: httpx, oauthlib, repath Required-by: flet-cli, flet-desktop, flet-webview flet-webview Python Package Version (from pip show flet-webview): Name: flet-webview Version: 0.1.0 Summary: WebView control for Flet Home-page: https://flet.dev/ Author: Author-email: Flet contributors [email protected] License: Location: D:\atlas_flet\flet_venv\Lib\site-packages Requires: flet Required-by:
Important Note:
flet_webview Dart/Flutter Package (from pub.dev): The latest version on pub.dev is 0.25.2 (as of June 2025). This is a significant discrepancy from the Python package version.
WebView2 Runtime: Confirmed installed on the system (tried to install MicrosoftEdgeWebView2RuntimeInstallerX86.exe, which indicated it was already present).
Troubleshooting Attempted:
Tried to upgrade flet-webview using pip install --upgrade flet-webview, but the version remained at 0.1.0, indicating it's the latest available on PyPI.
Verified WebView2 Runtime installation on Windows 10.
Tested with a minimal Flet app specifically for ft.WebView.
Checked pub.dev and noted the substantial version difference between the Python flet-webview package (0.1.0) and the Dart flet_webview package (0.25.2).
Additional Context / Hypothesis: My strong hypothesis is that the Python flet-webview package (PyPI version 0.1.0) is severely outdated and not compatible with the current Flet framework (0.28.3) and its underlying Flutter/Dart components, specifically the flet_webview Dart package. This version mismatch seems to be causing the platform support check to fail, as the Python binding likely cannot correctly interface with the newer Flutter-side WebView implementation. This issue prevents the crucial functionality of embedding web content within the Flet application, which is essential for my project (e.g., displaying maps or a full browser view in a companion display controlled by AI commands).
Code sample
Error message
Expected Behavior: The ft.WebView control should render the specified URL (e.g., https://flet.dev or https://www.google.com/maps) within the Flet application window, leveraging the WebView2 Runtime on Windows. Actual Behavior: The application window displays the text: "Error initializing WebView: WebView is not yet supported on this Platform!" The console output typically also shows the same or a similar error.
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions