-
Notifications
You must be signed in to change notification settings - Fork 6k
Add a11y support for embedded iOS platform view #8156
Changes from 11 commits
3bcb1db
8fcf6b0
c036e80
05f77a3
b776a05
8ed39ee
a9a0c15
0e58ef8
4e670db
15c03ce
6fb37fe
3e57265
4a06b68
4ea581f
68251d8
c540565
4a29306
fb72727
5ff2ddc
fae2cc0
0d3bb16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -604,7 +604,11 @@ class SemanticsUpdateBuilder extends NativeFieldWrapperClass2 { | |
| /// The field `platformViewId` references the platform view, whose semantics | ||
| /// nodes will be added as children to this node. If a platform view is | ||
| /// specified, `childrenInHitTestOrder` and `childrenInTraversalOrder` must be | ||
| /// empty. | ||
| /// empty, and other semantic configurations will be ignored. The ignored configurations | ||
| /// include:[flags], [actions], [textSelectionBase], [textSelectionExtent], [scrollChildren], | ||
| /// [scrollIndex], [scrollPosition], [scrollExtentMax], [scrollExtentMin], [elevation], | ||
| /// [thickness], [label], [hint], [value], [increasedValue], [decreasedValue], [textDirection], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This explicit list seems hard to maintain. Nobody will remember to add a property here if we add a new one.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good point, we also have the same problem in the framework semantics code. I think one problem could be that we have a very long list of properties inside these semantics class, this can lead to maintain hell.
Or maybe we can do both 1 and 2? Do you have a different way to do it? Also copying @cbracken on this. Maybe we should open a new issue to track this effort?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I do not understand what you mean by 2. Instead of listing all these properties, I'd probably just explain what it means on the platform side to set a paltformViewId.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After offline discussion with @goderbauer, I am going to restructure the platform view subtree. |
||
| /// [transform], [childrenInTraversalOrder], [childrenInHitTestOrder], [additionalActions] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised to see that transform is ignored. What if the PlatForm viewed is scaled up or down?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we current support transforming in platform view. @amirh |
||
| /// | ||
| /// For scrollable nodes `scrollPosition` describes the current scroll | ||
| /// position in logical pixel. `scrollExtentMax` and `scrollExtentMin` | ||
|
|
||
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.
nit: space missing after
: