Open 0xbadb0d00 opened 4 years ago
I have also faced the same issue. Am I missing something here?
SizedBox(
width: 324.0
height: 30.0,
child: AutoSizeText(
'some long text string',
style: TextStyle(color: Colors.red),
maxLines: 1,
group: someTextGroup,
),
)
Check the minFontSize setting, the default is 12 points. In the screenshots, the font size appears to be larger with the AutoSizeText than with the normal Text widget. What is the font size with the normal Text widget?
i am having this problem as well it is just cutting the string
Just use FittedBox
instead of AutoSizeText
FittedBox(
child: Text('my long text ...'),
)
Set minFontSize
to 8
or 10
. Still feels legible with this font size.
Just use
FittedBox
instead ofAutoSizeText
FittedBox( child: Text('my long text ...'), )
Just wrapping the (Autosize)Text Widget into a FittedBox does it. No need to resort only to Text.
Version
Hello, I'am trying to use your wonderful plugin, but it, even if plugin did a resizing, doesn't work correctly.
I am trying following test code to show that string in just 2 lines:
`
`
This is what I see with a normal Text Widget:
This is instead what I see with AutoSizeText Widget:
The text size switched from 14 to 12 with AutoSizeText Widget, but the resulting text is cutted.
Can you please check it? Do you have any suggestion?