dart formatting

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

@ -981,7 +981,7 @@ class QuillRawEditorState extends EditorState
// and watch if the system language is a RTL language and avoid putting // 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 // to the edge of the left side any checkbox or list point/number if is a
// RTL language // RTL language
if(nodeTextDirection == TextDirection.ltr && isRTL(context)){ if (nodeTextDirection == TextDirection.ltr && isRTL(context)) {
nodeTextDirection = TextDirection.rtl; nodeTextDirection = TextDirection.rtl;
} }
if (node is Line) { if (node is Line) {

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

Loading…
Cancel
Save