flet icon indicating copy to clipboard operation
flet copied to clipboard

feat: `WebView` enhancements

Open ndonkoHenri opened this issue 5 months ago • 6 comments

Summary by Sourcery

Enhance the WebView component with new event handling and method support, refactor platform detection logic, and update dependencies for improved platform-specific functionality.

New Features:

  • Introduce new event handling capabilities for the WebView component, including scroll, console message, and JavaScript alert dialog events.
  • Add support for various WebView methods such as reload, go back, go forward, enable/disable zoom, clear cache, and run JavaScript.
  • Implement platform-specific WebView support for mobile, macOS, web, Windows, and Linux platforms.

Enhancements:

  • Deprecate the 'javascript_enabled' property in favor of 'enable_javascript' in the WebView component.
  • Refactor platform detection logic by introducing a new 'platform.dart' utility for better platform-specific checks.

Build:

  • Update dependencies in the pubspec.yaml file, including upgrading 'webview_flutter' and adding new dependencies like 'webview_flutter_web' and 'webview_flutter_platform_interface'.

ndonkoHenri avatar Sep 20 '24 09:09 ndonkoHenri