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

Add RTL support (Bidi) #1239

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add RTL support (Bidi) #1239

wants to merge 2 commits into from

Commits on Jul 22, 2024

  1. feat: add text_direction utility to help control the display direction

    This will be used to control the direction of text elements depending on
    the content.
    
    We use `intl` to either add unicode characters to fix the display, or to
    know which TextDirection it should use (to be used when displaying
    HTML).
    
    `AutoDirection` is used for dynamic content, such as TextField to change
    the direction based on the input text.
    
    Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
    Amjad50 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    56d7e85 View commit details
    Browse the repository at this point in the history
  2. feat: implement direction handling for RTL content in several widgets

    Use the `utils/text_direction.dart` functions to:
    - convert text Strings into a version that may contain unicode characters to change the
      direction of the text.
    - control how to display HTML based on the text direction based on the
      content
    - control the direction of TextField dynamically based on the written
      content.
    
    Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
    Amjad50 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    d68b9b3 View commit details
    Browse the repository at this point in the history