Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems when using languages ​​that use ltr instead of rtl #1928

Open
1 task done
jonasbernardo opened this issue Jun 18, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@jonasbernardo
Copy link

jonasbernardo commented Jun 18, 2024

Is there an existing issue for this?

Flutter Quill version

9.4.2

Steps to reproduce

problem with languages ​​that use ltr instead of rtl, DirectionAttribute('ltr');
When I touch the enumerated list or checkbox option, even when using ltr in languages ​​like Hebrew, the checkboxes and enumerated lists do not change, they remain in the position as if using rtl

Expected results

checkbox and the list number go to the beginning of the line on the right side

Actual results

checkbox and list number are at the beginning of the line on the left side

Code sample

default quill

Screenshots or Video

No response

Logs

No response

@jonasbernardo jonasbernardo added the bug Something isn't working label Jun 18, 2024
@AtlasAutocode
Copy link
Collaborator

In my exploring the code, I have found that lists are implemented by hard coding the checkbox (or list number) into the left edge of the display irrespective of ltr or rtl.
You can see this if you change the text alignment to center or right - the checkbox stays on the left edge with the text floating in the center - which looks weird!
Fixing that is not trivial.
More complex is the issue you raise of Hebrew with LTR but checkboxes on the right which would need some kind of language lookup.
I think the whole concept of lists and alignments needs review.
Anyone have any comments or solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants