Widen getText support for RichText with multiple text spans in driver (#75603)
This commit is contained in:
@@ -390,9 +390,10 @@ mixin CommandHandlerFactory {
|
||||
text = (widget as Text).data;
|
||||
} else if (widget.runtimeType == RichText) {
|
||||
final RichText richText = widget as RichText;
|
||||
if (richText.text.runtimeType == TextSpan) {
|
||||
text = (richText.text as TextSpan).text;
|
||||
}
|
||||
text = richText.text.toPlainText(
|
||||
includeSemanticsLabels: false,
|
||||
includePlaceholders: false,
|
||||
);
|
||||
} else if (widget.runtimeType == TextField) {
|
||||
text = (widget as TextField).controller?.text;
|
||||
} else if (widget.runtimeType == TextFormField) {
|
||||
|
||||
Reference in New Issue
Block a user