[webview_flutter] Document NavigationDelegate callbacks
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
- [x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
- [x] I read the AI contribution guidelines and understand my responsibilities, or I am not using AI tools.
- [x] I read the Tree Hygiene page, which explains my responsibilities.
- [x] I read and followed the relevant style guides and ran the auto-formatter.
- [x] I signed the CLA.
- [x] The title of the PR starts with the name of the package surrounded by square brackets, e.g.
[shared_preferences] - [x] I linked to at least one issue that this PR fixes in the description above.
- [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 under[^1].
- [x] I updated/added any relevant documentation (doc comments with
///). - [x] I added new tests to check the change I am making, or I have commented below to indicate which test exemption this PR falls under[^1].
- [ ] All existing and new tests are passing.
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.
[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.
[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.
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?
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.
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!
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.
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.