TextOptions

data class TextOptions(val text: String = "", val style: ComponentStyle = ComponentStyle(), val alignment: TextAlignment = TextAlignment.Start, val maxLines: Int? = null, val overflow: TextOverflow = TextOverflow.Clip, val selectable: Boolean = false, val color: Color = Color.Black, val fontSize: Float = 14.0f, val fontWeight: FontWeight = FontWeight.Normal, val fontFamily: String? = null, val lineHeight: Float = 1.2f, val letterSpacing: Float = 0.0f, val wordSpacing: Float = 0.0f, val textDecoration: TextDecoration = TextDecoration.None, val backgroundColor: Color = Color.Transparent, val padding: EdgeInsets = EdgeInsets.zero, val margin: EdgeInsets = EdgeInsets.zero)

Configuration options for the Text component.

Constructors

Link copied to clipboard
constructor(text: String = "", style: ComponentStyle = ComponentStyle(), alignment: TextAlignment = TextAlignment.Start, maxLines: Int? = null, overflow: TextOverflow = TextOverflow.Clip, selectable: Boolean = false, color: Color = Color.Black, fontSize: Float = 14.0f, fontWeight: FontWeight = FontWeight.Normal, fontFamily: String? = null, lineHeight: Float = 1.2f, letterSpacing: Float = 0.0f, wordSpacing: Float = 0.0f, textDecoration: TextDecoration = TextDecoration.None, backgroundColor: Color = Color.Transparent, padding: EdgeInsets = EdgeInsets.zero, margin: EdgeInsets = EdgeInsets.zero)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fontFamily: String? = null
Link copied to clipboard
val fontSize: Float = 14.0f
Link copied to clipboard
Link copied to clipboard
val letterSpacing: Float = 0.0f
Link copied to clipboard
val lineHeight: Float = 1.2f
Link copied to clipboard
Link copied to clipboard
val maxLines: Int? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selectable: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val wordSpacing: Float = 0.0f