diff --git a/lib/src/editor/raw_editor/raw_editor_state.dart b/lib/src/editor/raw_editor/raw_editor_state.dart index 874c8632..37f4bc2c 100644 --- a/lib/src/editor/raw_editor/raw_editor_state.dart +++ b/lib/src/editor/raw_editor/raw_editor_state.dart @@ -980,7 +980,8 @@ class QuillRawEditorState extends EditorState // 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 && _textDirection == TextDirection.rtl) { + if (nodeTextDirection == TextDirection.ltr && + _textDirection == TextDirection.rtl) { nodeTextDirection = TextDirection.rtl; } if (node is Line) { diff --git a/lib/src/editor/widgets/text/text_block.dart b/lib/src/editor/widgets/text/text_block.dart index 67c8d123..0553089a 100644 --- a/lib/src/editor/widgets/text/text_block.dart +++ b/lib/src/editor/widgets/text/text_block.dart @@ -198,7 +198,8 @@ class EditableTextBlock extends StatelessWidget { // 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 && textDirection == TextDirection.rtl) { + if (nodeTextDirection == TextDirection.ltr && + textDirection == TextDirection.rtl) { nodeTextDirection = TextDirection.rtl; } children.add(