mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: dynamic width of the number
This commit is contained in:
@ -47,8 +47,6 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
|||||||
final iconKey = GlobalKey();
|
final iconKey = GlobalKey();
|
||||||
|
|
||||||
final _richTextKey = GlobalKey(debugLabel: 'number_list_text');
|
final _richTextKey = GlobalKey(debugLabel: 'number_list_text');
|
||||||
final _iconWidth = 20.0;
|
|
||||||
final _iconRightPadding = 5.0;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
SelectableMixin<StatefulWidget> get forward =>
|
SelectableMixin<StatefulWidget> get forward =>
|
||||||
@ -61,12 +59,13 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
|||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
FlowySvg(
|
Padding(
|
||||||
key: iconKey,
|
key: iconKey,
|
||||||
width: _iconWidth,
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),
|
||||||
height: _iconWidth,
|
child: Text(
|
||||||
padding: EdgeInsets.only(right: _iconRightPadding),
|
'${widget.textNode.attributes.number.toString()}.',
|
||||||
number: widget.textNode.attributes.number,
|
style: const TextStyle(fontSize: 16),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: FlowyRichText(
|
child: FlowyRichText(
|
||||||
|
Reference in New Issue
Block a user