Skip to main content

Developer mode for flutter, text height

  • June 22, 2023
  • 1 reply
  • 1268 views

Hello, I am a Flutter developer and I recently tried out the developer mode in Figma. In other languages, text height usually means the the height of the text component, but in Flutter, text height has a different dynamic. To implement the height given as a figma component one must set TextStyle as the following


style : TextStyle(

height : (height given in figma design) / (font size)
)

For example, if the deisgn of a text has height of 20, and a font size of 16,
height : 20/16

It’s a small tweak, but I hope it helps!

This topic has been closed for replies.

1 reply

  • 0 replies
  • July 22, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings