-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Semantics framework updates #18758
Semantics framework updates #18758
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.
LGTM
/// * [SemanticsFlag.image], for the flag this setting controls. | ||
final bool image; | ||
|
||
/// If non-null, whether the node should be considered a live region. |
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.
Great doc 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.
🌮
@@ -693,7 +733,7 @@ class SemanticsProperties extends DiagnosticableTree { | |||
/// vertically scrollable. | |||
/// | |||
/// VoiceOver users on iOS can trigger this action by swiping down with three | |||
/// fingers. TalkBack users on Android can trigger this action by swiping | |||
/// fingers. TalkBack users on Android can trigger this action by swiping |
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.
remove extra white space?
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.
Done
@@ -133,3 +133,21 @@ class TapSemanticEvent extends SemanticsEvent { | |||
@override | |||
Map<String, dynamic> getDataMap() => const <String, dynamic>{}; | |||
} | |||
|
|||
/// An event which triggers an announcement of a live region. |
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.
... a polite announcement ... ?
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.
Done
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.
Looks like it didn't come through?
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.
Never mind. I see it's there now. Was looking at an old diff :(
|
||
/// If non-null, whether the node should be considered a live region. | ||
/// | ||
/// On Android, when a live region semantics node is first created TalkBack |
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.
Can you document what iOS does when this is set?
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.
Done
/// An event which triggers an announcement of a live region. | ||
/// | ||
/// This requires that the semantics node has already been marked as a live | ||
/// region. Only Android (TalkBack) will make a verbal announcement, as long as |
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.
What does iOS do?
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.
Nothing :(
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.
I would probably spell that out in the doc 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.
Never mind. I see it's there now. Was looking at an old diff :(
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
@@ -3136,6 +3137,9 @@ class RenderSemanticsAnnotations extends RenderProxyBox { | |||
bool scopesRoute, | |||
bool namesRoute, | |||
bool hidden, | |||
bool image, | |||
bool liveRegion, | |||
bool isSwitch, |
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 argument is ignored. was that a mistake?
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.
yup
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.
It's not breaking anything - but it is entirely redundant. Will remove
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.
i have a PR out to remove it
Requires flutter/engine#5601
Fixes #14468
Fixes #3815
Fixes #11140
Partial fix of #16673
Android fix of #16395
Android fix of #14378
Changes: