Skip to content

Conversation

agavrilko
Copy link
Contributor

flutter/flutter#136479

These are the platform interface changes, after the main PR was approved.
#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

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with change to make class base

/// }
/// ```
@immutable
class LoadFileParams {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This can be made into a base class to ensure it is extended.

Suggested change
class LoadFileParams {
base class LoadFileParams {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added base modifier.

flutter/flutter#136479

• Added LoadFileParams to specify parameters for loading local HTML pages.
• PlatformWebViewController class extended with the new method loadFileWithParams(LoadFileParams).
@agavrilko agavrilko force-pushed the feature/#136479_webview_flutter_platform_interface branch from 59be663 to 8adf1da Compare July 31, 2025 20:33
@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 1, 2025
@auto-submit auto-submit bot merged commit 03b33b1 into flutter:main Aug 1, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 4, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Aug 4, 2025
flutter/packages@f0645d8...1a72287

2025-08-01 [email protected] Add an initial AGENTS.md
(flutter/packages#9716)
2025-08-01 [email protected] Roll Flutter from
c3279ca to 871849e (56 revisions) (flutter/packages#9728)
2025-08-01 [email protected]
[webview_flutter_platform_interface] Provide flexible API for loading
local HTML files (flutter/packages#9697)
2025-08-01 [email protected] 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 [email protected] 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
@agavrilko agavrilko deleted the feature/#136479_webview_flutter_platform_interface branch August 5, 2025 21:26
danilozhang pushed a commit to danilozhang/flutter that referenced this pull request Aug 6, 2025
…r#173215)

flutter/packages@f0645d8...1a72287

2025-08-01 [email protected] Add an initial AGENTS.md
(flutter/packages#9716)
2025-08-01 [email protected] Roll Flutter from
c3279ca to 871849e (56 revisions) (flutter/packages#9728)
2025-08-01 [email protected]
[webview_flutter_platform_interface] Provide flexible API for loading
local HTML files (flutter/packages#9697)
2025-08-01 [email protected] 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 [email protected] 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
SydneyBao pushed a commit to SydneyBao/flutter that referenced this pull request Aug 6, 2025
…r#173215)

flutter/packages@f0645d8...1a72287

2025-08-01 [email protected] Add an initial AGENTS.md
(flutter/packages#9716)
2025-08-01 [email protected] Roll Flutter from
c3279ca to 871849e (56 revisions) (flutter/packages#9728)
2025-08-01 [email protected]
[webview_flutter_platform_interface] Provide flexible API for loading
local HTML files (flutter/packages#9697)
2025-08-01 [email protected] 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 [email protected] 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
ksokolovskyi pushed a commit to ksokolovskyi/flutter that referenced this pull request Aug 19, 2025
…r#173215)

flutter/packages@f0645d8...1a72287

2025-08-01 [email protected] Add an initial AGENTS.md
(flutter/packages#9716)
2025-08-01 [email protected] Roll Flutter from
c3279ca to 871849e (56 revisions) (flutter/packages#9728)
2025-08-01 [email protected]
[webview_flutter_platform_interface] Provide flexible API for loading
local HTML files (flutter/packages#9697)
2025-08-01 [email protected] 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 [email protected] 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: webview_flutter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants