Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: text align error
Lucas.Xu255cb47876e7
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/bulleted_list_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/bulleted_list_text.dartindex 05da8d1e80..b962f63f3d 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/bulleted_list_text.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/bulleted_list_text.dart@@ -60,16 +60,19 @@ class _BulletedListTextNodeWidgetState extends State<BulletedListTextNodeWidget>return SizedBox(width: maxTextNodeWidth,child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,children: [FlowySvg(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,+ ),),],),diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dartindex 89c314eb8a..e5b02eb32d 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/checkbox_text.dart@@ -84,12 +84,14 @@ 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,+ ),),],),diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/number_list_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/number_list_text.dartindex 0a2cd5937a..65b41e8e9b 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/number_list_text.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/number_list_text.dart@@ -60,16 +60,19 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>return SizedBox(width: maxTextNodeWidth,child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,children: [FlowySvg(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,+ ),),],),diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/quoted_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/quoted_text.dartindex 65cfa3d066..0bb259de14 100644--- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/quoted_text.dart+++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/quoted_text.dart@@ -59,6 +59,7 @@ class _QuotedTextNodeWidgetState extends State<QuotedTextNodeWidget>return SizedBox(width: maxTextNodeWidth,child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,children: [FlowySvg(size: Size(@@ -67,11 +68,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,+ ),),],),