-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: money (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specifically
Description
b/227994145
Steps to Reproduce
- Execute
flutter runto run the Gallery app (https://github.com/flutter/gallery) on an Android phone - Navigate to 'MATERIAL'
- Navigate to 'Text Field'
- Turn on Voice Access and use Voice Access to input to one of the Text Fields
Expected results:
Input text matches what the user said.
Actual results:
Semantics label + InputDecoration.prefixText + InputDecoration.labelText + InputDecoration.hintText gets added to user input.
Code sample
https://github.com/flutter/gallery/blob/main/lib/demos/material/text_field_demo.dart
Logs
Suspected root cause (@chunhtai): https://github.com/flutter/engine/blob/453a60f06a594834f15281cb4f29632075bb59cc/shell/platform/android/io/flutter/view/AccessibilityBridge.java#L888
Note:
'ABC' is the actual voice input, 'Name*' is InputDecoration.labelText, 'What do people call you?' is InputDecoration.hintText;
If we set InputDecoration.prefixText / add label to the Semantics widget mentioned above in TextField.dart, they will also be added to the input.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: money (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specifically
