From 827e12c823ad9394688f30fee968d7682c088986 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 20 Jun 2023 11:35:23 +0800 Subject: [PATCH] fix: numbered lists have issue with the dot --- .../numbered_list_block_component.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/editor/block_component/numbered_list_block_component/numbered_list_block_component.dart b/lib/src/editor/block_component/numbered_list_block_component/numbered_list_block_component.dart index ec451e552..5992f5add 100644 --- a/lib/src/editor/block_component/numbered_list_block_component/numbered_list_block_component.dart +++ b/lib/src/editor/block_component/numbered_list_block_component/numbered_list_block_component.dart @@ -126,10 +126,13 @@ class _NumberedListBlockComponentWidgetState Widget defaultIcon() { final text = editorState.editorStyle.textStyleConfiguration.text; final level = _NumberedListIconBuilder(node: widget.node).level; - return Container( - width: 20, + return Padding( padding: const EdgeInsets.only(right: 5.0), child: Text.rich( + textHeightBehavior: const TextHeightBehavior( + applyHeightToFirstAscent: false, + applyHeightToLastDescent: false, + ), TextSpan(text: '$level.', style: text.combine(textStyle)), ), );