Trace:
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
flutterui:label_styles [2023/03/24 10:51] admin created |
flutterui:label_styles [2023/03/24 10:53] 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> | ||
Line 17: | Line 17: | ||
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> |