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: dynamic width of the number
Vincent Chan0310b9272380
diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/number_list_text.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/number_list_text.dartindex 36d3d93ed9..36778c46b2 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/number_list_text.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/number_list_text.dart@@ -47,8 +47,6 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>final iconKey = GlobalKey();final _richTextKey = GlobalKey(debugLabel: 'number_list_text');- final _iconWidth = 20.0;- final _iconRightPadding = 5.0;@overrideSelectableMixin<StatefulWidget> get forward =>@@ -61,12 +59,13 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>child: Row(crossAxisAlignment: CrossAxisAlignment.start,children: [- FlowySvg(+ Padding(key: iconKey,- width: _iconWidth,- height: _iconWidth,- padding: EdgeInsets.only(right: _iconRightPadding),- number: widget.textNode.attributes.number,+ padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),+ child: Text(+ '${widget.textNode.attributes.number.toString()}.',+ style: const TextStyle(fontSize: 16),+ ),),Flexible(child: FlowyRichText(