HighlightedText: Ensure max lines is being followed

This results in the highlighted text not always being visible. I'm not
sure how to fix that, it seems rather complex.
This commit is contained in:
Vishesh Handa
2020-09-14 12:36:48 +02:00
parent c94ff85804
commit 2404475074

View File

@ -38,6 +38,7 @@ class HighlightedText extends StatelessWidget {
var after = text.substring(i + highlightText.length);
return RichText(
maxLines: maxLines,
text: TextSpan(
children: [
TextSpan(text: before, style: style),