Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
flutterui:label_styles [2023/03/24 10:51]
admin created
flutterui:label_styles [2026/08/14 06:57] (current)
admin
Line 1: Line 1:
 ~~NOTRANS~~ ~~NOTRANS~~
 ~~Title: Label styles~~ ~~Title: 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 of the textfield, but for simple text labels without textfield this is not stylish. ​We have options for default padding:+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:+We have additional styles ​regarding padding:
  
 <​code>​ <​code>​
 +f_padding_0
 +f_padding_2
 +
 f_padding_top_0 f_padding_top_0
 f_padding_top_2 f_padding_top_2
Line 12: Line 15:
 f_padding_bottom_2 f_padding_bottom_2
 </​code>​ </​code>​
-**_0** means no padding \\  +**0** means no padding \\  
-**_2** means half default padding+**2** means half default padding
  
 As usual, add the style to your label As usual, add the style to your label
  
-<code java>​Style.addStyleNames(label,​ "f_bottom_0"​);</​code>​+<code java>​Style.addStyleNames(label,​ "f_padding_bottom_0"​);</​code>​
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information