badge¶
How to write by SpWML¶
(badge, label:999+)
+(icon, iconNum:0xe22a)
Summary¶
This is a block that can give notification badges to child blocks.
It has a variable with parameters equivalent to Flutter Badge class .
Dart Class Reference¶
SpWML Parameters¶
The common parameters.
Parent parameters.
color (String). Set badge color. The color system .
textColor (String). Set badge text color. The color system .
label (String). Specifies the label to display as a badge. If not specified, a solid color dot will be displayed.
smallSize (double). The size when displayed as a solid color dot.
offsetX (double). Use this when you want to shift the display position of the X coordinate of the label. Negative values are also allowed.
offsetY (double). Use this when you want to shift the display position of the Y coordinate of the label. Negative values are also allowed.
isLabelVisible (bool). Change the visibility state of the label.