mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: text align error
This commit is contained in:
parent
6f32f749bc
commit
255cb47876
@ -60,17 +60,20 @@ class _BulletedListTextNodeWidgetState extends State<BulletedListTextNodeWidget>
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: maxTextNodeWidth,
|
width: maxTextNodeWidth,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
FlowySvg(
|
FlowySvg(
|
||||||
size: Size.square(leftPadding),
|
size: Size.square(leftPadding),
|
||||||
name: 'point',
|
name: 'point',
|
||||||
),
|
),
|
||||||
FlowyRichText(
|
Expanded(
|
||||||
|
child: FlowyRichText(
|
||||||
key: _richTextKey,
|
key: _richTextKey,
|
||||||
placeholderText: 'List',
|
placeholderText: 'List',
|
||||||
textNode: widget.textNode,
|
textNode: widget.textNode,
|
||||||
editorState: widget.editorState,
|
editorState: widget.editorState,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -84,13 +84,15 @@ class _CheckboxNodeWidgetState extends State<CheckboxNodeWidget>
|
|||||||
..commit();
|
..commit();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlowyRichText(
|
Expanded(
|
||||||
|
child: FlowyRichText(
|
||||||
key: _richTextKey,
|
key: _richTextKey,
|
||||||
placeholderText: 'To-do',
|
placeholderText: 'To-do',
|
||||||
textNode: widget.textNode,
|
textNode: widget.textNode,
|
||||||
textSpanDecorator: _textSpanDecorator,
|
textSpanDecorator: _textSpanDecorator,
|
||||||
editorState: widget.editorState,
|
editorState: widget.editorState,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -60,17 +60,20 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: maxTextNodeWidth,
|
width: maxTextNodeWidth,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
FlowySvg(
|
FlowySvg(
|
||||||
size: Size.square(leftPadding),
|
size: Size.square(leftPadding),
|
||||||
number: widget.textNode.attributes.number,
|
number: widget.textNode.attributes.number,
|
||||||
),
|
),
|
||||||
FlowyRichText(
|
Expanded(
|
||||||
|
child: FlowyRichText(
|
||||||
key: _richTextKey,
|
key: _richTextKey,
|
||||||
placeholderText: 'List',
|
placeholderText: 'List',
|
||||||
textNode: widget.textNode,
|
textNode: widget.textNode,
|
||||||
editorState: widget.editorState,
|
editorState: widget.editorState,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -59,6 +59,7 @@ class _QuotedTextNodeWidgetState extends State<QuotedTextNodeWidget>
|
|||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: maxTextNodeWidth,
|
width: maxTextNodeWidth,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
FlowySvg(
|
FlowySvg(
|
||||||
size: Size(
|
size: Size(
|
||||||
@ -67,12 +68,14 @@ class _QuotedTextNodeWidgetState extends State<QuotedTextNodeWidget>
|
|||||||
),
|
),
|
||||||
name: 'quote',
|
name: 'quote',
|
||||||
),
|
),
|
||||||
FlowyRichText(
|
Expanded(
|
||||||
|
child: FlowyRichText(
|
||||||
key: _richTextKey,
|
key: _richTextKey,
|
||||||
placeholderText: 'Quote',
|
placeholderText: 'Quote',
|
||||||
textNode: widget.textNode,
|
textNode: widget.textNode,
|
||||||
editorState: widget.editorState,
|
editorState: widget.editorState,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user