|
|
@ -1,6 +1,5 @@ |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
|
|
|
|
|
|
|
import '../../extensions/quill_configurations_ext.dart'; |
|
|
|
|
|
|
|
import '../../models/documents/attribute.dart'; |
|
|
|
import '../../models/documents/attribute.dart'; |
|
|
|
import '../quill/text_block.dart'; |
|
|
|
import '../quill/text_block.dart'; |
|
|
|
|
|
|
|
|
|
|
@ -15,6 +14,7 @@ class QuillEditorNumberPoint extends StatelessWidget { |
|
|
|
this.withDot = true, |
|
|
|
this.withDot = true, |
|
|
|
this.padding = 0.0, |
|
|
|
this.padding = 0.0, |
|
|
|
super.key, |
|
|
|
super.key, |
|
|
|
|
|
|
|
this.backgroundColor, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
final int index; |
|
|
|
final int index; |
|
|
@ -25,6 +25,7 @@ class QuillEditorNumberPoint extends StatelessWidget { |
|
|
|
final Map<String, Attribute> attrs; |
|
|
|
final Map<String, Attribute> attrs; |
|
|
|
final bool withDot; |
|
|
|
final bool withDot; |
|
|
|
final double padding; |
|
|
|
final double padding; |
|
|
|
|
|
|
|
final Color? backgroundColor; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
@ -37,12 +38,10 @@ class QuillEditorNumberPoint extends StatelessWidget { |
|
|
|
alignment: AlignmentDirectional.topEnd, |
|
|
|
alignment: AlignmentDirectional.topEnd, |
|
|
|
width: width, |
|
|
|
width: width, |
|
|
|
padding: EdgeInsetsDirectional.only(end: padding), |
|
|
|
padding: EdgeInsetsDirectional.only(end: padding), |
|
|
|
color: context.quillEditorElementOptions?.orderedList.backgroundColor, |
|
|
|
color: backgroundColor, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
withDot ? '$s.' : s, |
|
|
|
withDot ? '$s.' : s, |
|
|
|
style: style.copyWith( |
|
|
|
style: style, |
|
|
|
color: context.quillEditorElementOptions?.orderedList.fontColor, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -74,12 +73,10 @@ class QuillEditorNumberPoint extends StatelessWidget { |
|
|
|
alignment: AlignmentDirectional.topEnd, |
|
|
|
alignment: AlignmentDirectional.topEnd, |
|
|
|
width: width, |
|
|
|
width: width, |
|
|
|
padding: EdgeInsetsDirectional.only(end: padding), |
|
|
|
padding: EdgeInsetsDirectional.only(end: padding), |
|
|
|
color: context.quillEditorElementOptions?.orderedList.backgroundColor, |
|
|
|
color: backgroundColor, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
withDot ? '$s.' : s, |
|
|
|
withDot ? '$s.' : s, |
|
|
|
style: style.copyWith( |
|
|
|
style: style, |
|
|
|
color: context.quillEditorElementOptions?.orderedList.fontColor, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|