Documentation

Trace:

Differences

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

Link to this comparison view

Next revision
Previous revision
flutterui:text_button [2023/02/28 23:22]
admin created
flutterui:text_button [2026/08/19 08:14] (current)
admin
Line 7: Line 7:
 {{:​flutterui:​textbutton.png?​nolink&​400|}} {{:​flutterui:​textbutton.png?​nolink&​400|}}
  
-It's easy too style a button like text. Simple ​set following style:+It's easy to style a button like text. Simply ​set following style:
  
 <file java> <file java>
 Style.addStyleNames(button,​ "​f_text"​);​ Style.addStyleNames(button,​ "​f_text"​);​
 </​file>​ </​file>​
 +
 +If the text color should be the same as the color of a label, use:
 +
 +<file java>
 +Style.addStyleNames(button,​ "​f_text_label"​);​
 +</​file>​
 +
 +and the text color of the button will be the same as a standard label/text and it will be changed in dark mode automatically.
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information