-
-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to Reproduce
I show simple item price with price label and currency symbol, I use AutoSizeText.rich to manage styles, and if the text is larger than space it does not count the last word, the currency symbol does not appear, and if I write a word after the currency symbol the text shrink to fit the text with currency symbol but again the last word does not count and does not appear!.
Even when I tried to use Row with separated AutoSizeText still the same.
Code sample
AutoSizeText.rich(
TextSpan(
text: '${locale.priceWithVat} : ',
style: TextStyles.smallRegular,
children: [
TextSpan(
text: '${item.priceWithVat} ${locale.sar}',
style: TextStyles.smallBold,
),
],
),
maxLines: 1,
minFontSize: 10,
)
Screenshots
- when text: '${item.priceWithVat} ${locale.sar}'
- when text: '${item.priceWithVat} ${locale.sar} ss'
Version
- Flutter version: [3.16.0]
- auto_size_text version: [3.0.0]
iapicca and AleryBerry
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working