diff --git a/lib/src/editor/raw_editor/raw_editor_state.dart b/lib/src/editor/raw_editor/raw_editor_state.dart index 95231fbe..b0e2174d 100644 --- a/lib/src/editor/raw_editor/raw_editor_state.dart +++ b/lib/src/editor/raw_editor/raw_editor_state.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); diff --git a/lib/src/editor/widgets/text/text_block.dart b/lib/src/editor/widgets/text/text_block.dart index bb236a4c..8d8c0a5b 100644 --- a/lib/src/editor/widgets/text/text_block.dart +++ b/lib/src/editor/widgets/text/text_block.dart @@ -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(