mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: wrapping heading text with Padding instead of two SizeBoxs.
This commit is contained in:
parent
e4c3a3ae84
commit
c5e9008f4b
@ -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,
|
||||||
|
bottom: bottomPadding,
|
||||||
),
|
),
|
||||||
FlowyRichText(
|
child: FlowyRichText(
|
||||||
key: _richTextKey,
|
key: _richTextKey,
|
||||||
textSpanDecorator: _textSpanDecorator,
|
textSpanDecorator: _textSpanDecorator,
|
||||||
textNode: widget.textNode,
|
textNode: widget.textNode,
|
||||||
editorState: widget.editorState,
|
editorState: widget.editorState,
|
||||||
),
|
),
|
||||||
SizedBox(
|
)
|
||||||
height: bottomPadding,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user