-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Changed docs for hintOverrides field of SemanticsProperties #162632
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
Conversation
| /// | ||
| /// On iOS, these are always ignored and the default [hint] is used instead. | ||
| /// This property does not affect how the platform processes hints; it only sets | ||
| /// the custom text that will be read by assistive technology. |
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.
This doc is still a bit unclear. we should give some example on how this is used.
On Android, these overrides replace the hints used when focusing nodes with tap or long press actions. For example, if a [SemanticsHintOverrides.onTapHint] is provided, instead of saying `double tap to activate`, it will say `double tap to <onTapHint>`.
we should also mention this is ignored in other platform
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.
Thank you very much for your feedback, I have fixed it!
chunhtai
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.
LGTM
hannah-hyj
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.
LGTM
| /// On iOS, this property is ignored, and default platform behavior applies. | ||
| /// | ||
| /// Example usage: | ||
| /// ```dart |
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.
the indent issues here is causing the test to fail
packages/flutter/lib/src/semantics/semantics.dart:1565: Dart section inexplicably did not contain "/// " prefix.
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.
Thank you, fixed it
|
autosubmit label was removed for flutter/flutter/162632, because - The status or check suite Linux analyze has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
analyzer error |
Fix #129356
List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.