feat: wrapping heading text with Padding instead of two SizeBoxs.

This commit is contained in:
Lucas.Xu 2022-07-29 10:41:39 +08:00
parent e4c3a3ae84
commit c5e9008f4b

View File

@ -59,18 +59,18 @@ class _HeadingTextNodeWidgetState extends State<HeadingTextNodeWidget>
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Column(
children: [ children: [
SizedBox( Padding(
height: topPadding, padding: EdgeInsets.only(
), top: topPadding,
FlowyRichText( bottom: bottomPadding,
key: _richTextKey, ),
textSpanDecorator: _textSpanDecorator, child: FlowyRichText(
textNode: widget.textNode, key: _richTextKey,
editorState: widget.editorState, textSpanDecorator: _textSpanDecorator,
), textNode: widget.textNode,
SizedBox( editorState: widget.editorState,
height: bottomPadding, ),
), )
], ],
); );
} }