Documentation

Trace: Label styles

(flutterui)

Label styles

Our labels have a default height because of extra top and bottom padding. The label is as high as a textfield. This is great if the text is left or right to a textfield, but for simple text labels without textfield this is not stylish.

We have additional styles regarding padding:

f_padding_top_0
f_padding_top_2

f_padding_bottom_0
f_padding_bottom_2

0 means no padding
2 means half default padding

As usual, add the style to your label

Style.addStyleNames(label, "f_padding_bottom_0");
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information