Skip to content

Does not work with Flutter Web --web-renderer = html (default for mobile) #86

@MyBuzzTechnologies

Description

@MyBuzzTechnologies

Create a simple app with AutoSizeText:

Widget build(BuildContext context) {
return Container(
// color: Colors.red,
// child: const Center(child: Text("Reports")),
child: Center(
child: Container(
width: 60,
decoration: BoxDecoration(border: Border.all()),
child: const AutoSizeText("Sample long text", minFontSize: 5, maxLines: 1),
)));
}

Run with:

flutter -d chrome --web-renderer html

image

Note: the text does not resize correctly.
If you run with --web-renderer canvasKit (the default for desktop) the text resizes correctly.

image

Flutter (Channel beta, 1.26.0-17.3.pre, on macOS 11.2.1 20D74 darwin-arm, locale en-GB)
• Flutter version 1.26.0-17.3.pre
• Framework revision 4b50ca7f7f (11 days ago)
• Engine revision 2c527d6c7e
• Dart version 2.12.0 (build 2.12.0-259.8.beta)

auto_size_text: ^2.1.0 (also tried 3.0.0-nullsafety.0 - same problem)

Reproducible on Chrome version 88.0.4324.150 (Official Build) (x86_64 translated)

Also has same problem on iPhone Safari browser (iOS 14.3)

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