Skip to content

Conversation

@DanielAvdar
Copy link

This pull request adds official Windows support to the flet_webview package and introduces a new implementation for the WebView on Windows and Linux platforms. The main focus is on enabling and improving Windows compatibility, including platform-specific initialization, event handling, and method invocation for the desktop WebView component.

Platform support updates:

  • Windows is now officially marked as supported in the README.md platform matrix.

Desktop WebView implementation improvements:

  • The WebviewDesktop widget is converted from a stateless to a stateful widget, now requiring a control parameter for event and method handling. [1] [2]
  • On Windows, the widget initializes a webview_windows.WebviewController, sets up event listeners for URL changes and loading state, and supports various control methods (reload, navigation, cache/cookie clearing, JavaScript execution, etc.).
  • On Linux, the widget displays an informative error message about lack of support, including a link to further information.
  • The widget now shows a loading indicator while initializing, and displays error messages if initialization fails.

Dependency updates:

  • Added the webview_windows package to pubspec.yaml to support the new Windows WebView implementation.

Integration and usage:

  • The instantiation of WebviewDesktop in webview.dart is updated to pass the required control parameter, ensuring proper integration with the new stateful widget.

@CLAassistant
Copy link

CLAassistant commented Oct 20, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ Copilot
❌ DanielAvdar
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 2 commits October 20, 2025 12:07
Removed version constraint for 'flet' dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants