mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 09:38:25 +00:00
feat: use const num
This commit is contained in:
parent
2775737260
commit
4402f4dec9
1 changed files with 3 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue