Documentation

Trace:

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
flutterui:button_styles [2023/03/24 11:41]
admin
flutterui:button_styles [2026/08/20 16:18] (current)
admin
Line 5: Line 5:
 Our button has a minimum size of 48x48 pixels. This is necessary for touch events because your fingers need some space for device contact. But sometimes 48x48 is too much. To style a button on your own, just use: Our button has a minimum size of 48x48 pixels. This is necessary for touch events because your fingers need some space for device contact. But sometimes 48x48 is too much. To style a button on your own, just use:
  
-<code java>​Style.addStyleNames(button,​ "f_no_min_size"​);</​code>​+<code java>​Style.addStyleNames(button,​ "f_small"​);</​code>​
  
 and the button size is as it is. and the button size is as it is.
 +
 +If you define margins for your button, we also calculate the size as it is, but sometimes you want the default height, so we introduced the style:
 +
 +''​f_standard_size''​
 +
 +which takes care of minimum default height.
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information