Adds text attributes support for semantics (#79599)

* Adds label attributes

* fix test

* comments

* list equal
This commit is contained in:
chunhtai
2021-06-17 09:45:34 -07:00
committed by GitHub
parent a65328b460
commit 00ee2e59e7
10 changed files with 970 additions and 253 deletions

View File

@@ -546,11 +546,11 @@ void main() {
final SemanticsData data = SemanticsData(
flags: flags,
actions: actions,
label: 'a',
increasedValue: 'b',
value: 'c',
decreasedValue: 'd',
hint: 'e',
attributedLabel: AttributedString('a'),
attributedIncreasedValue: AttributedString('b'),
attributedValue: AttributedString('c'),
attributedDecreasedValue: AttributedString('d'),
attributedHint: AttributedString('e'),
textDirection: TextDirection.ltr,
rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0),
elevation: 3.0,