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
feat: use const num
Vincent Chan4402f4dec9d4
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 36778c46b2..2085b3a48a 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@@ -40,6 +40,7 @@ class NumberListTextNodeWidget extends StatefulWidget {}// customize+const double _numberHorizontalPadding = 8;class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>with SelectableMixin, DefaultSelectable {@@ -61,7 +62,8 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>children: [Padding(key: iconKey,- padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),+ padding: const EdgeInsets.symmetric(+ horizontal: _numberHorizontalPadding, vertical: 0),child: Text('${widget.textNode.attributes.number.toString()}.',style: const TextStyle(fontSize: 16),