auto_size_text icon indicating copy to clipboard operation
auto_size_text copied to clipboard

AutoSizeText does not work on Web

Open KevinYan12138 opened this issue 4 years ago • 4 comments

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]

KevinYan12138 avatar Jul 07 '20 08:07 KevinYan12138

I currently have the same problem...

Niggelgame avatar Aug 12 '20 13:08 Niggelgame

@leisim are you still working on this plugin?

Niggelgame avatar Aug 16 '20 17:08 Niggelgame

Having the same issue. I'm using Flutter Web. The overflow text gets cut off entirely. Height resizes. Width doesn't resize. All other text gets cut out of frame.

jonnyjohnson1 avatar Aug 29 '20 13:08 jonnyjohnson1

Still breaks in release builds or after hot-reload on flutter web flutter 3.1.0-9.0.pre

nikto-b avatar Jul 08 '22 12:07 nikto-b