Uh oh!
There was an error while loading. Please reload this page.
[webview_flutter_platform_interface] Provide flexible API for loading local HTML files - #9697
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new, more flexible API for loading local HTML files by adding a LoadFileParams class and a loadFileWithParams method to PlatformWebViewController. The changes include updates to the platform interface, new tests for the added functionality, and corresponding documentation and version updates. My review focuses on improving documentation clarity and consistency. Overall, the changes are well-implemented and tested.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1d4903e to
59be663Compare
bparrishMines
left a comment
There was a problem hiding this comment.
LGTM with change to make class base
| /// } | ||
| /// ``` | ||
| @immutable | ||
| class LoadFileParams { |
There was a problem hiding this comment.
nit: This can be made into a base class to ensure it is extended.
| classLoadFileParams { | |
| baseclassLoadFileParams { |
flutter/flutter#136479 • Added LoadFileParams to specify parameters for loading local HTML pages. • PlatformWebViewController class extended with the new method loadFileWithParams(LoadFileParams).
59be663 to
8adf1daCompareUh oh!
There was an error while loading. Please reload this page.
… loading local HTML files (flutter/packages#9697)
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@f0645d8...1a72287 2025-08-01 stuartmorgan@google.com Add an initial AGENTS.md (flutter/packages#9716) 2025-08-01 engine-flutter-autoroll@skia.org Roll Flutter from c3279ca to 871849e (56 revisions) (flutter/packages#9728) 2025-08-01 gavrilko.alexander@gmail.com [webview_flutter_platform_interface] Provide flexible API for loading local HTML files (flutter/packages#9697) 2025-08-01 jessiewong401@gmail.com Extending Timeout on `Linux_android android_build_all_packages *` (flutter/packages#9717) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
… local HTML files (flutter#9697) [https://github.com/flutter/flutter/issues/136479](https://github.com/flutter/flutter/issues/136479) These are the platform interface changes, after the main PR was approved. [https://github.com/flutter/packages/pull/8787](https://github.com/flutter/packages/pull/8787) What was changed: * Added `LoadFileParams` to specify parameters for loading local HTML pages. * `PlatformWebViewController` class extended with the new method `loadFileWithParams(LoadFileParams)`. * Unit tests for the new functionality of the `PlatformWebViewController` were added. ## Pre-Review Checklist
… local HTML files (flutter#9697) [https://github.com/flutter/flutter/issues/136479](https://github.com/flutter/flutter/issues/136479) These are the platform interface changes, after the main PR was approved. [https://github.com/flutter/packages/pull/8787](https://github.com/flutter/packages/pull/8787) What was changed: * Added `LoadFileParams` to specify parameters for loading local HTML pages. * `PlatformWebViewController` class extended with the new method `loadFileWithParams(LoadFileParams)`. * Unit tests for the new functionality of the `PlatformWebViewController` were added. ## Pre-Review Checklist
flutter/flutter#136479
These are the platform interface changes, after the main PR was approved.
#8787
What was changed:
LoadFileParamsto specify parameters for loading local HTML pages.PlatformWebViewControllerclass extended with the new methodloadFileWithParams(LoadFileParams).PlatformWebViewControllerwere added.Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under[^1].CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under[^1].///).