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

Value of height property in TextStyle widget #1

Open
prateek-aher opened this issue Feb 5, 2021 · 2 comments
Open

Value of height property in TextStyle widget #1

prateek-aher opened this issue Feb 5, 2021 · 2 comments

Comments

@prateek-aher
Copy link

@sanni-aubergine https://github.com/Flutter-Ahmedabad/foodie_app/blob/1adc746e84a45e1134775fbd4ab2185b56eefa8d/lib/main.dart#L40

This value i.e. 0.8 doesn't seem to be fit in with the values of the dimensions you provided in other parts of the code. I don't understand what effect it has on the screen.

@prasadsunny1
Copy link

prasadsunny1 commented Feb 6, 2021

This value sets line-height for the text

@prateek-aher
Copy link
Author

Is it a relative unit like em or rem in CSS? I ask this because it is obvious that it is not in pixels.

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

No branches or pull requests

2 participants