Documentation

Trace:

Differences

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

Link to this comparison view

Last revision Both sides next revision
flutterui:checkbox_switch [2022/11/30 13:14]
admin created
flutterui:checkbox_switch [2022/11/30 13:15]
admin
Line 2: Line 2:
 ~~Title: Checkbox as switch~~ ~~Title: Checkbox as switch~~
  
-On mobile devices, a checkbox should look like a switch. If you want to show a switch instead a checkbox, simply add the following style:+On mobile devices, a checkbox should ​sometimes ​look like a switch ​(e.g. for settings). If you want to show a switch instead a checkbox, simply add the following style:
  
 <file java> <file java>
 Style.addStyleNames(checkbox,​ "​f_switch"​);​ Style.addStyleNames(checkbox,​ "​f_switch"​);​
 </​file>​ </​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information