[a11y] Make sure RenderFractionalTranslation updates its semantics after the translation field is set (#48985)

This commit is contained in:
Anthony
2020-01-17 18:13:01 -05:00
committed by Flutter GitHub Bot
parent fcf341e4f3
commit b67d5ec6e9
196 changed files with 1686 additions and 1607 deletions

View File

@@ -563,36 +563,35 @@ void main() {
children: <Widget>[
const Text('Hello1', key: ValueKey<String>('text1')),
Container(
height: 25.0,
child: RichText(
key: const ValueKey<String>('text2'),
text: const TextSpan(text: 'Hello2'),
),
height: 25.0,
child: RichText(
key: const ValueKey<String>('text2'),
text: const TextSpan(text: 'Hello2')
)
),
Container(
height: 25.0,
child: EditableText(
key: const ValueKey<String>('text3'),
controller: TextEditingController(text: 'Hello3'),
focusNode: FocusNode(),
style: const TextStyle(),
cursorColor: Colors.red,
backgroundCursorColor: Colors.black,
),
height: 25.0,
child: EditableText(
key: const ValueKey<String>('text3'),
controller: TextEditingController(text: 'Hello3'),
focusNode: FocusNode(),
style: const TextStyle(),
cursorColor: Colors.red,
backgroundCursorColor: Colors.black)
),
Container(
height: 25.0,
child: TextField(
key: const ValueKey<String>('text4'),
controller: TextEditingController(text: 'Hello4'),
),
height: 25.0,
child: TextField(
key: const ValueKey<String>('text4'),
controller: TextEditingController(text: 'Hello4')
)
),
Container(
height: 25.0,
child: TextFormField(
key: const ValueKey<String>('text5'),
controller: TextEditingController(text: 'Hello5'),
),
height: 25.0,
child: TextFormField(
key: const ValueKey<String>('text5'),
controller: TextEditingController(text: 'Hello5')
)
),
],
))

View File

@@ -18,7 +18,7 @@ void main() {
test('io_extension should throw exception', () {
expect(() => registerWebServiceExtension(call),
throwsA(isA<UnsupportedError>()));
throwsA(isInstanceOf<UnsupportedError>()));
});
});
}