Skip to content

AutoSizeText does not work on Web #63

@KevinYan12138

Description

@KevinYan12138

Steps to Reproduce
I am currently running Flutter Beta 1.19.0-4.3.pre, and when I use AutoSizeText with a maxLines, the text does not resize. Instead, it will only keep the texts within the max number of lines and get rid of the rest of the text.

Code sample

Row(
                children: [
                  Container(
                    width: size.width * 0.3,
                    child: Image.asset('assets/Organizers_1.jpg')
                  ),
                  SizedBox(width: size.width * 0.2,),
                  SizedBox(
                    width: size.width * 0.3,
                    height: size.height * 0.1,
                    child: AutoSizeText('Sign up as a member or a manager. Manager is able to post events on a shared calendar that all members are able to view.',
                                style: TextStyle(height: 2,), maxLines: 3,
                    ),
                  )
                ],
              ),

Screenshots
If applicable, add screenshots to help explain your problem.

Version

  • Flutter version: [Beta 1.19.0-4.3.pre]
  • auto_size_text version: [^2.1.0]

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