mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: flowy_rich_text will not automatically wrap when the text exceeds a line
This commit is contained in:
parent
25387cd0b0
commit
9b9de523da
@ -62,11 +62,13 @@ class _BulletedListTextNodeWidgetState extends State<BulletedListTextNodeWidget>
|
||||
size: Size.square(leftPadding),
|
||||
name: 'point',
|
||||
),
|
||||
FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'List',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
Expanded(
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'List',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
@ -82,13 +82,15 @@ class _CheckboxNodeWidgetState extends State<CheckboxNodeWidget>
|
||||
..commit();
|
||||
},
|
||||
),
|
||||
FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'To-do',
|
||||
textNode: widget.textNode,
|
||||
textSpanDecorator: _textSpanDecorator,
|
||||
editorState: widget.editorState,
|
||||
)
|
||||
Expanded(
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'To-do',
|
||||
textNode: widget.textNode,
|
||||
textSpanDecorator: _textSpanDecorator,
|
||||
editorState: widget.editorState,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
@ -141,10 +141,7 @@ class _FlowyRichTextState extends State<FlowyRichText> with Selectable {
|
||||
return Stack(
|
||||
children: [
|
||||
_buildPlaceholderText(context),
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: _buildSingleRichText(context),
|
||||
)
|
||||
_buildSingleRichText(context),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
@ -63,13 +63,15 @@ class _HeadingTextNodeWidgetState extends State<HeadingTextNodeWidget>
|
||||
top: topPadding,
|
||||
bottom: bottomPadding,
|
||||
),
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'Heading',
|
||||
placeholderTextSpanDecorator: _placeholderTextSpanDecorator,
|
||||
textSpanDecorator: _textSpanDecorator,
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
child: Expanded(
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'Heading',
|
||||
placeholderTextSpanDecorator: _placeholderTextSpanDecorator,
|
||||
textSpanDecorator: _textSpanDecorator,
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
@ -63,11 +63,13 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
||||
size: Size.square(leftPadding),
|
||||
number: widget.textNode.attributes.number,
|
||||
),
|
||||
FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'List',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
Expanded(
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'List',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
@ -65,11 +65,13 @@ class _QuotedTextNodeWidgetState extends State<QuotedTextNodeWidget>
|
||||
),
|
||||
name: 'quote',
|
||||
),
|
||||
FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'Quote',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
Expanded(
|
||||
child: FlowyRichText(
|
||||
key: _richTextKey,
|
||||
placeholderText: 'Quote',
|
||||
textNode: widget.textNode,
|
||||
editorState: widget.editorState,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user