switchBtn¶
How to write by SpWML¶
(switchBtn, sid:sb1)
// only material v3
(switchBtn, type:check, sid:sb2)
Summary¶
A block that has no child blocks.
It is necessary to set the SID.
An ON/OFF switch is placed where this block is placed.
It has a variable with parameters equivalent to Flutter Switch class .
To use this type, it is necessary to set FlagManager to SpWMLBuilder or SpWML widget.
Also, if no value is selected, the manager has no value.
Dart Class Reference¶
SpWML Parameters¶
The common parameters.
color (String). Color setting. The color system .
check (bool). It changes to a switch with a check icon only when Material V3 is enabled.
isEnabled (bool). Set to false if you want to disable this elements.