Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android bug what is it? #11

Closed
1AlexFix1 opened this issue Apr 3, 2019 · 8 comments
Closed

Android bug what is it? #11

1AlexFix1 opened this issue Apr 3, 2019 · 8 comments
Labels
question Further information is requested

Comments

@1AlexFix1
Copy link

1AlexFix1 commented Apr 3, 2019

Container(
                        height: 50,
                        width: 40,
                        alignment: Alignment.center,
                        child: AutoSizeText(
                          '999',
                          style: TextStyle(fontSize: 100),
                          textAlign: TextAlign.center,
                          maxLines: 1,
                        ),
                      ),

This code works fine in any IOS device, but on Android, the last letter goes to the next line, if you slightly increase the height you will see why this happens?
But FittedBox help this

@simc simc added the wip This issue is currently being implemented label Apr 3, 2019
@simc
Copy link
Owner

simc commented Apr 3, 2019

I'm looking into this...

@simc
Copy link
Owner

simc commented Apr 5, 2019

Your sample works fine for me. Even if I change the width or height of the container...
Could you test it again and maybe create a small test project?

@simc simc added good first issue Good for newcomers needs info Additional info is needed and removed good first issue Good for newcomers labels Apr 5, 2019
@1AlexFix1
Copy link
Author

Your sample works fine for me. Even if I change the width or height of the container...
Could you test it again and maybe create a small test project?

There is a problem in that it is reproduced on my real device honor 8, while on the emulator everything worked fine. I'll take a few more phones and test them on the answer as soon as I do it.

@no-response no-response bot removed the needs info Additional info is needed label Apr 5, 2019
@1AlexFix1
Copy link
Author

I launched on several real devices and everything is OK there, this is a very strange bug, I go into the phone settings, I didn’t change anything with the text, everything is default, how do you think it could be? my phone honor 8 model FRD-L09

@simc
Copy link
Owner

simc commented Apr 6, 2019

Are you using auto_size_text v1.1.2?
If not please update to the latest version.
Also try setting your minFontSize to 0.

@simc simc added the needs info Additional info is needed label Apr 6, 2019
@ajkerfaisal
Copy link

Are you using auto_size_text v1.1.2?
If not please update to the latest version.
Also try setting your minFontSize to 0.

by setting minFontSize it resolved for me

@simc
Copy link
Owner

simc commented Apr 6, 2019

The problem was that one of your phones seems to have a slightly larger font size and your AutoSizeText hit the minFontSize and could not resize further...

@simc simc added question Further information is requested and removed needs info Additional info is needed wip This issue is currently being implemented labels Apr 6, 2019
@simc simc closed this as completed Apr 6, 2019
@1AlexFix1
Copy link
Author

done! thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants