Skip to content

Commit

Permalink
Fix #3035, switch flutter RichText to Text.rich (#3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrefen authored Apr 30, 2024
1 parent ba3272a commit 3eef6bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/flet/lib/src/controls/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ class TextControl extends StatelessWidget with FletStoreMixin {
textAlign: textAlign,
)
: (spans.isNotEmpty)
? RichText(
text: TextSpan(text: text, style: style, children: spans),
? Text.rich(
TextSpan(text: text, style: style, children: spans),
semanticsLabel: semanticsLabel,
maxLines: maxLines,
softWrap: !noWrap,
textAlign: textAlign,
Expand Down

0 comments on commit 3eef6bb

Please sign in to comment.