-
Notifications
You must be signed in to change notification settings - Fork 246
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
Set line height to 1 #144
base: master
Are you sure you want to change the base?
Set line height to 1 #144
Conversation
Hi, thanks for your contribution! |
Here is an example:
This results in: If I use a material icon like This issue is also only present on Android devices. |
Thank you very much for the example! I will merge as soon as I've verified this does not break existing behaviour. (This may take a while as I'm very short on time right now) |
Ok strange. I tested it again with different line heights. I'm using Flutter 2.0.1 on iOS 14.4 and tested it with this code:
Using line height 1 I got this: line height 1.02 this: line height 0.99: I think with line height 0.99 the icon is centered the most. |
This is very strange. For me, 0.99 is completely misaligned. Could you attach the output of |
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale de-DE) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 3.6) [✓] VS Code (version 1.54.3) [✓] Connected device (2 available) • No issues found! |
The line height must be set to 1. Otherwise the icons are offset