Fix height of empty line bug (#141)

pull/145/head
Till Friebe 4 years ago committed by GitHub
parent ac2ca07bb0
commit 7cba9a8523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      lib/widgets/text_line.dart

@ -44,12 +44,11 @@ class TextLine extends StatelessWidget {
return EmbedProxy(embedBuilder(context, embed));
}
TextSpan textSpan = _buildTextSpan(context);
StrutStyle strutStyle =
StrutStyle.fromTextStyle(textSpan.style!, forceStrutHeight: true);
final textSpan = _buildTextSpan(context);
final strutStyle = StrutStyle.fromTextStyle(textSpan.style!);
final textAlign = _getTextAlign();
RichText child = RichText(
text: TextSpan(children: [textSpan]),
text: textSpan,
textAlign: textAlign,
textDirection: textDirection,
strutStyle: strutStyle,

Loading…
Cancel
Save