dart formatting

pull/2060/head
CatHood0 9 months ago
parent 0d52ea030b
commit 3c5698ba00
  1. 6
      lib/src/editor/raw_editor/raw_editor_state.dart
  2. 8
      lib/src/editor/widgets/text/text_block.dart

@ -977,12 +977,12 @@ class QuillRawEditorState extends EditorState
prevNodeOl = attrs[Attribute.list.key] == Attribute.ol;
var nodeTextDirection = getDirectionOfNode(node);
// verify if the direction from nodeTextDirection is the default direction
// verify if the direction from nodeTextDirection is the default direction
// and watch if the system language is a RTL language and avoid putting
// to the edge of the left side any checkbox or list point/number if is a
// RTL language
if(nodeTextDirection == TextDirection.ltr && isRTL(context)){
nodeTextDirection = TextDirection.rtl;
if (nodeTextDirection == TextDirection.ltr && isRTL(context)) {
nodeTextDirection = TextDirection.rtl;
}
if (node is Line) {
final editableTextLine = _getEditableTextLineFromNode(node, context);

@ -137,7 +137,7 @@ class EditableTextBlock extends StatelessWidget {
if (attrs.containsKey(Attribute.blockQuote.key)) {
// Verify if the direction is RTL and avoid passing the decoration
// to the left when need to be on right side
if(textDirection == TextDirection.rtl){
if (textDirection == TextDirection.rtl) {
return defaultStyles!.quote!.decoration?.copyWith(
border: Border(
right: BorderSide(width: 4, color: Colors.grey.shade300),
@ -195,12 +195,12 @@ class EditableTextBlock extends StatelessWidget {
cursorCont,
);
var nodeTextDirection = getDirectionOfNode(line);
// verify if the direction from nodeTextDirection is the default direction
// verify if the direction from nodeTextDirection is the default direction
// and watch if the system language is a RTL language and avoid putting
// to the edge of the left side any checkbox or list point/number if is a
// RTL language
if(nodeTextDirection == TextDirection.ltr && isRTL(context)){
nodeTextDirection = TextDirection.rtl;
if (nodeTextDirection == TextDirection.ltr && isRTL(context)) {
nodeTextDirection = TextDirection.rtl;
}
children.add(
Directionality(

Loading…
Cancel
Save