|
|
@ -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( |
|
|
|