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:
parent
2775737260
commit
4402f4dec9
@ -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…
x
Reference in New Issue
Block a user