Skip to content

MaxLines make text disappear with hebrew #48

@omri1100

Description

@omri1100

Hello,
I tried using this package with Hebrew.
When I type the string "שם משפחה" with fontsize 27, and as Bold withing a container with width 144, the last word disappeared.
If I entered this string - "שם משפחההה", the whole sentence was shown.

this is my Code

class RegistrationScreen1 extends StatelessWidget {
  Color hexToColor(String code) {
    return Color(int.parse(code.substring(1, 7), radix: 16) + 0xFF000000);
  }

  AutoSizeGroup textGroup = AutoSizeGroup();
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        width: 144,
        child: AutoSizeText(
          "שם משפחה",
          maxLines: 1,
          minFontSize: 2,
          style: TextStyle(fontSize: 27, fontWeight: FontWeight.bold),
        ),
      ),
    );
  }
}

Screenshots
image

Version

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.7, on Microsoft Windows [Version 10.0.18362.592], locale en-IL)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (2 available)

• No issues found!

  • auto_size_text version: 2.1.0

I couldn't reproduce that bug with english :(

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions