forked from firka/flutter
Add android semantics integration test to device lab (#20971)
This commit is contained in:
@@ -37,6 +37,7 @@ class AndroidSemanticsNode {
|
||||
/// "isLongClickable": bool,
|
||||
/// },
|
||||
/// "text": String,
|
||||
/// "contentDescription": String,
|
||||
/// "className": String,
|
||||
/// "id": int,
|
||||
/// "rect": {
|
||||
@@ -64,6 +65,16 @@ class AndroidSemanticsNode {
|
||||
/// the Flutter [SemanticsNode].
|
||||
String get text => _values['text'];
|
||||
|
||||
/// The contentDescription of the semantics node.
|
||||
///
|
||||
/// This field is used for the Switch, Radio, and Checkbox widgets
|
||||
/// instead of [text]. If the text property is used for these, TalkBack
|
||||
/// will not read out the "checked" or "not checked" label by default.
|
||||
///
|
||||
/// This is produced by combining the value, label, and hint fields from
|
||||
/// the Flutter [SemanticsNode].
|
||||
String get contentDescription => _values['contentDescription'];
|
||||
|
||||
/// The className of the semantics node.
|
||||
///
|
||||
/// Certain kinds of Flutter semantics are mapped to Android classes to
|
||||
|
||||
Reference in New Issue
Block a user