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

text color. Default if unset

backgroundColor

background color. Transparent if unset

borderColor

border color. Default if unset and borderWidth is set

borderWidth

border width. Default if unset and borderColor is set

borderStyle

border style. Normal (solid) if unset and borderColor or borderWidth is set

Values

alignment

alignment of the content. Default if unset

Values

textAlignment

alignment of the text. alignment if unset

Values

margin

whitespace outside the content. None if unset

padding

whitespace around the content. None if unset

cornerRadius

corner (and border) radius. None if unset

fontSize

relative font size of the text. Normal if unset

Values

fontWeight

font weight of the text. Normal if unset

Values

fontStyle

font style of the text. Normal if unset

Values

fontVariant

font variant of the text. Normal if unset

Values

textDecoration

text decoration of the text. None if unset

Values

textCase

text case of the text. Normal if unset

Values