packages icon indicating copy to clipboard operation
packages copied to clipboard

[webview_flutter] Document NavigationDelegate callbacks

Open saurabh-mirajkar opened this issue 5 months ago • 4 comments

Description

Adds documentation for callback parameters accepted by NavigationDelegate.

Previously, the constructor documentation only described onUrlChange, onHttpAuthRequest, and onSslAuthError, while other commonly used callbacks such as onNavigationRequest, onPageStarted, onPageFinished, onProgress, onWebResourceError, and onHttpError were undocumented.

This change updates the NavigationDelegate constructor documentation to cover all supported callbacks and improves consistency in the existing descriptions.

Fixes flutter/flutter#187780

Tests

Tests are not needed because this is a documentation-only change.

Version and CHANGELOG

Updated the package version to 4.14.1 and added a CHANGELOG entry for the NavigationDelegate documentation improvements.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.

saurabh-mirajkar avatar Jun 17 '26 09:06 saurabh-mirajkar

[x] I followed the version and CHANGELOG instructions, using semantic versioning and the repository CHANGELOG style, or I have commented below to indicate which documented exception this PR falls under1.

I'm not seeing this step in the PR.

stuartmorgan-g avatar Jun 17 '26 11:06 stuartmorgan-g

[x] I followed the version and CHANGELOG instructions, using semantic versioning and the repository CHANGELOG style, or I have commented below to indicate which documented exception this PR falls under1.

I'm not seeing this step in the PR.

@stuartmorgan-g Thanks for pointing that out. I've updated the PR description to explain why I didn't include version or CHANGELOG updates, since this change only adds documentation for existing callbacks and does not modify package behavior. If public API documentation changes are expected to include versioning or CHANGELOG updates under the packages repository policy, I'm happy to add them.

saurabh-mirajkar avatar Jun 18 '26 05:06 saurabh-mirajkar

I've updated the PR description to explain why I didn't include version or CHANGELOG updates, since this change only adds documentation for existing callbacks and does not modify package behavior.

Could you let me know where you see that as a documented exception to the versioning policy?

stuartmorgan-g avatar Jun 22 '26 16:06 stuartmorgan-g

Could you let me know where you see that as a documented exception to the versioning policy?

Thanks for the clarification. You're right that I couldn't find a documented exception covering public API dartdoc changes. I've updated the package version and added a CHANGELOG entry accordingly.

saurabh-mirajkar avatar Jun 25 '26 07:06 saurabh-mirajkar

Hi @stuartmorgan-g, just following up on this PR. I addressed the previous review feedback by updating the package version and adding a CHANGELOG entry. When you have a chance, I'd appreciate another look. Thanks!

saurabh-mirajkar avatar Jul 02 '26 11:07 saurabh-mirajkar

autosubmit label was removed for flutter/packages/11921, because - The status or check suite Mac_x64 ios_build_all_packages stable has failed. Please fix the issues identified (or deflake) before re-applying this label.

auto-submit[bot] avatar Jul 07 '26 15:07 auto-submit[bot]

autosubmit label was removed for flutter/packages/11921, because - The status or check suite Mac_x64 ios_build_all_packages stable has failed. Please fix the issues identified (or deflake) before re-applying this label.

auto-submit[bot] avatar Jul 07 '26 16:07 auto-submit[bot]