-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Document Form.onChange precedence over DropdownButtonFormField.onChange #175249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Form.onChange precedence over DropdownButtonFormField.onChange #175249
Conversation
There was a problem hiding this 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 adds documentation to DropdownButtonFormField.onChanged to clarify its execution order relative to Form.onChanged. The added documentation is accurate and helpful. I've suggested a minor wording improvement to enhance clarity.
| /// | ||
| /// This callback is called after the [Form.onChanged] callback. | ||
| /// [Form.onChanged] callback can query the field updated value using | ||
| /// [FormFieldState.value]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this clarification. The wording could be slightly improved for better clarity and to be more explicit about which Form is being referred to.
///
/// This callback is invoked after the parent [Form]'s [Form.onChanged] callback.
/// The field's updated value is available in the [Form.onChanged] callback
/// via [FormFieldState.value].90f86ab to
93d8350
Compare
ksokolovskyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flutter/flutter@5a6a1bf...f331a55 2025-09-12 [email protected] Roll Dart SDK from a4075f2f670f to 11dedad2d062 (2 revisions) (flutter/flutter#175268) 2025-09-12 [email protected] Roll Packages from 5db2635 to 15e7e89 (2 revisions) (flutter/flutter#175266) 2025-09-12 [email protected] Document Form.onChange precedence over DropdownButtonFormField.onChange (flutter/flutter#175249) 2025-09-12 [email protected] Roll Fuchsia Linux SDK from 1pTB3J5rn4YYugylf... to b1AYfAFOnvBMHSsYL... (flutter/flutter#175250) 2025-09-12 [email protected] Roll Dart SDK from 7acebac57248 to a4075f2f670f (1 revision) (flutter/flutter#175245) 2025-09-11 [email protected] Roll Dart SDK from f7d6a4732ab0 to 7acebac57248 (2 revisions) (flutter/flutter#175239) 2025-09-11 [email protected] Marks Linux_pixel_7pro static_path_stroke_tessellation_perf__timeline_summary to be flaky (flutter/flutter#175174) 2025-09-11 [email protected] update deps to point to the new SOT repo for package:coverage (flutter/flutter#175234) 2025-09-11 [email protected] [web] Fix image and color filters equality in SkWASM. (flutter/flutter#175230) 2025-09-11 [email protected] Roll Packages from 03598e7 to 5db2635 (1 revision) (flutter/flutter#175232) 2025-09-11 [email protected] Migrate to widget state (flutter/flutter#174746) 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 Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: 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
…ge (flutter#175249) ## Description This PR adds some documentation to `DropdownButtonFormField.onChanged` to clarify the precedence order related to `Form.onChanged`. ## Related Issue Fixes [DropdownButtonFormField changes not absorbing Form onChanged Function](flutter#86336) ## Tests Documentation only
…ge (flutter#175249) ## Description This PR adds some documentation to `DropdownButtonFormField.onChanged` to clarify the precedence order related to `Form.onChanged`. ## Related Issue Fixes [DropdownButtonFormField changes not absorbing Form onChanged Function](flutter#86336) ## Tests Documentation only
…ge (flutter#175249) ## Description This PR adds some documentation to `DropdownButtonFormField.onChanged` to clarify the precedence order related to `Form.onChanged`. ## Related Issue Fixes [DropdownButtonFormField changes not absorbing Form onChanged Function](flutter#86336) ## Tests Documentation only
…ge (flutter#175249) ## Description This PR adds some documentation to `DropdownButtonFormField.onChanged` to clarify the precedence order related to `Form.onChanged`. ## Related Issue Fixes [DropdownButtonFormField changes not absorbing Form onChanged Function](flutter#86336) ## Tests Documentation only

Description
This PR adds some documentation to
DropdownButtonFormField.onChangedto clarify the precedence order related toForm.onChanged.Related Issue
Fixes DropdownButtonFormField changes not absorbing Form onChanged Function
Tests
Documentation only