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)); return EmbedProxy(embedBuilder(context, embed));
} }
TextSpan textSpan = _buildTextSpan(context); final textSpan = _buildTextSpan(context);
StrutStyle strutStyle = final strutStyle = StrutStyle.fromTextStyle(textSpan.style!);
StrutStyle.fromTextStyle(textSpan.style!, forceStrutHeight: true);
final textAlign = _getTextAlign(); final textAlign = _getTextAlign();
RichText child = RichText( RichText child = RichText(
text: TextSpan(children: [textSpan]), text: textSpan,
textAlign: textAlign, textAlign: textAlign,
textDirection: textDirection, textDirection: textDirection,
strutStyle: strutStyle, strutStyle: strutStyle,

Loading…
Cancel
Save