Skip to content

RTL rendering issue - Strings ending with spaces #16333

@Rmaan

Description

@Rmaan

When rendering in RTL, in some cases, the beginning of the string get clipped. I found that you can reproduce easily by adding spaces at the end of string. It happens with both LTR and RTL languages and in Text or TextField widgets.

Steps to Reproduce

1- Set rendering to RTL.
2- Render new Text("some text ")
(Seems Github's markup will collapse adjacent spaces even in code blocks. So put more than one at the end of string.)
3- See "some" will get clipped.

I tested on Flutter beta (Channel beta, v0.2.3, on Microsoft Windows [Version 6.1.7601], locale en-US) and Flutter gallery app (latest version from Google Play). Here is a demo:

ezgif-2-3826dbf707

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: internationalizationSupporting other languages or locales. (aka i18n)a: typographyText rendering, possibly libtxtengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions