Skip to content

Commit 6126b1e

Browse files
committed
Make annotated text accessible
1 parent 79005e4 commit 6126b1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ui/annotated_text/annotated_text.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class AnnotatedText extends StatelessWidget {
5353

5454
@override
5555
Widget build(BuildContext context) {
56-
return RichText(
56+
return Text.rich(
57+
_buildTextSpan(text: text, defaultStyle: defaultStyle, annotationStyle: annotationStyle, actions: actions),
5758
textAlign: textAlign,
58-
text: _buildTextSpan(text: text, defaultStyle: defaultStyle, annotationStyle: annotationStyle, actions: actions),
5959
);
6060
}
6161
}

0 commit comments

Comments
 (0)