Issue
So in Material Design Spec under Onboarding: here
It is specified that:
32sp line height
which is the height from the bottom of the headline text to the base line of the subhead text.
My question is how exactly can this be implemented in flutter. Are padding enough to mimic this spec? or are there other more accurate ways to do this?
Solution
Yes, there is also a height property in TextStyle which allows you to manually adjust the height of the line.
Code Snippet
Text('Hey There',
style: TextStyle(height: 5, fontSize: 10),
)
Answered By - Ayush Bherwani


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.