Skip to content

[webview_flutter_platform_interface] Provide flexible API for loading local HTML files - #9697

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
agavrilko:feature/#136479_webview_flutter_platform_interface
Aug 1, 2025
Merged

[webview_flutter_platform_interface] Provide flexible API for loading local HTML files#9697
auto-submit[bot] merged 1 commit into
flutter:mainfrom
agavrilko:feature/#136479_webview_flutter_platform_interface

Conversation

@agavrilko

Copy link
Copy Markdown
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

@gemini-code-assistgemini-code-assistBot left a comment

Copy link
Copy Markdown
Contributor

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.

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@bparrishMinesbparrishMines left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
classLoadFileParams {
baseclassLoadFileParams {

Copy link
Copy Markdown
ContributorAuthor

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
agavrilkoforce-pushed the feature/#136479_webview_flutter_platform_interface branch from 59be663 to 8adf1daCompareJuly 31, 2025 20:33
@bparrishMinesbparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 1, 2025
@auto-submit
auto-submitBot merged commit 03b33b1 into flutter:mainAug 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-queueBot pushed a commit to flutter/flutter that referenced this pull request Aug 4, 2025
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
@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
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
SydneyBao pushed a commit to SydneyBao/flutter that referenced this pull request Aug 6, 2025
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
ksokolovskyi pushed a commit to ksokolovskyi/flutter that referenced this pull request Aug 19, 2025
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
mboetger pushed a commit to mboetger/flutter that referenced this pull request Sep 18, 2025
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
korca0220 pushed a commit to korca0220/flutter that referenced this pull request Sep 22, 2025
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
lucaantonelli pushed a commit to lucaantonelli/flutter that referenced this pull request Nov 21, 2025
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
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
… 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
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
… 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
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: webview_flutter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@agavrilko@stuartmorgan-g@bparrishMines