SpWMLElement¶
How to write by SpWML¶
It is a super class that cannot be described directly.
Summary¶
Superclass of all SpWML elements.
Dart Class Reference¶
Parameters¶
sid(String). String serial id. Used for specifying button callbacks and replacing child blocks. Setting the sid is mandatory for some subclasses. Only one identical SID is allowed in the same layout.
tag(String). A string tag, used by stateful types to manage the state. The same tag can be set multiple times in the same layout.
text(String). The text content written within the block. In a text element, this content is displayed on the screen.
h(double). It can also be written as height, which is the height of this element specified in px. Specify Infinity to maximize to the same width as the parent element.
w(double). It can also be written as width, which is the width of this element specified in px. Specify Infinity to maximize to the same width as the parent element.
wt(double). It can also be written as weight, The ratio of this element on the screen.If no other element has a ratio, the element with this will occupy the rest of the width.
minH (double). It can also be written as minHeight, It is the minimum height specified in px. Ignored depending on the conditions.
minW (double). It can also be written as minWidth, It is the minimum width specified in px. Ignored depending on the conditions.
maxH (double). It can also be written as maxHeight, It is the maximum height specified in px. Ignored depending on the conditions.
maxW (double). It can also be written as maxWidth, It is the maximum width specified in px. Ignored depending on the conditions.
mL (double). It can also be written as mLeft, which is the left margin specified in px.
mT (double). It can also be written as mTop, which is the top margin specified in px.
mR (double). It can also be written as mRight, which is the right margin specified in px.
mB (double). It can also be written as mBottom, which is the bottom margin specified in px.
mAll (double). Batch specification of margin in px. When used together with individual specifications such as mL, the individual side takes precedence.
pL (double). It can also be written as pLeft, which is the left padding specified in px.
pT (double). It can also be written as pTop, which is the top padding specified by px.
pR (double). It can also be written as pRight, which is the right padding specified in px.
pB (double). It can also be written as pBottom, which is the bottom padding specified in px.
pAll (double). Batch specification of padding in px. When used together with individual specifications such as pL, the individual side takes precedence.
shiftX (double). Shift the relative position of the element on the x-axis.
shiftY (double). Shift the relative position of the element on the y-axis.
elevation (double). Shifts the relative position of the element on the z-axis.
bgColor (String). Background Color setting. The color system .
borderColor (String). Border color setting. The color system .
borderWidth (double). The width of the border line specified in px.
borderRadius (double). Radius of border specified in px.
borderShape (String).The shape of the border.Specify a rectangle or circle. Invalid for btn, card, radioBtn, checkbox, table, tableRow.
rTL (double). Amount of rounding of the upper left border specified in px.
rTR (double). The amount of rounding of the upper right border specified in px.
rBL (double). The amount of rounding of the lower left border specified in px.
rBR (double). The amount of rounding of the bottom right border specified in px.
ellipticalX (double). The amount of rounding in the x-axis direction specified by px.Both ellipticalX and ellipticalY must be set at the same time.
ellipticalY (double). The amount of rounding in the y-axis direction specified in px.Both ellipticalX and ellipticalY must be set at the same time.
isGone (bool). If true, hides this block. The initial value is false.
useMaterial(bool). If true, the widget is internally wrapped in a Material widget. If the overlapping of views is strange, it may be improved by using it.