StyleOptions
constructor(foregroundColor: Color? = null, backgroundColor: Color? = null, borderColor: Color? = null, borderWidth: Sizes? = null, borderStyle: NodeStyle.BorderStyle? = null, alignment: NodeStyle.Alignment? = null, textAlignment: NodeStyle.TextAlignment? = null, margin: Sizes? = null, padding: Sizes? = null, cornerRadius: Sizes? = null, fontSize: TextTransformData.Size? = null, fontWeight: TextTransformData.Weight? = null, fontStyle: TextTransformData.Style? = null, fontVariant: TextTransformData.Variant? = null, textDecoration: TextTransformData.Decoration? = null, textCase: TextTransformData.Case? = null)
Parameters
foregroundColor
- Optional
- Likely named
text color. Default if unset
backgroundColor
- Optional
- Likely named
background color. Transparent if unset
borderColor
- Optional
- Likely named
border color. Default if unset and borderWidth is set
borderWidth
- Optional
- Likely named
border width. Default if unset and borderColor is set
borderStyle
- Optional
- Likely named
border style. Normal (solid) if unset and borderColor or borderWidth is set
Values
normaldasheddotteddouble
alignment
margin
- Optional
- Likely named
whitespace outside the content. None if unset
padding
- Optional
- Likely named
whitespace around the content. None if unset
cornerRadius
- Optional
- Likely named
corner (and border) radius. None if unset
fontSize
- Optional
- Likely named
relative font size of the text. Normal if unset
Values
tinysmallnormalmediumlargelargerhuge
fontWeight
fontStyle
fontVariant
textDecoration
- Optional
- Likely named
text decoration of the text. None if unset
Values
noneunderlineoverlineunderoverlinestrikethroughall
textCase