mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: use const num
This commit is contained in:
@ -40,6 +40,7 @@ class NumberListTextNodeWidget extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// customize
|
// customize
|
||||||
|
const double _numberHorizontalPadding = 8;
|
||||||
|
|
||||||
class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
||||||
with SelectableMixin, DefaultSelectable {
|
with SelectableMixin, DefaultSelectable {
|
||||||
@ -61,7 +62,8 @@ class _NumberListTextNodeWidgetState extends State<NumberListTextNodeWidget>
|
|||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
key: iconKey,
|
key: iconKey,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 0),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: _numberHorizontalPadding, vertical: 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.textNode.attributes.number.toString()}.',
|
'${widget.textNode.attributes.number.toString()}.',
|
||||||
style: const TextStyle(fontSize: 16),
|
style: const TextStyle(fontSize: 16),
|
||||||
|
Reference in New Issue
Block a user