Slide 18
Slide 18 text
5FYU
@Composable
fun Text(
text: String,
modifier: Modifier = Modifier.None,
style: TextStyle? = null,
paragraphStyle: ParagraphStyle? = null,
softWrap: Boolean = DefaultSoftWrap,
overflow: TextOverflow = DefaultOverflow,
// TODO(siyamed): remove suppress
@SuppressLint("AutoBoxing")
maxLines: Int? = DefaultMaxLines,
selectionColor: Color = DefaultSelectionColor
) {
Text(
text = AnnotatedString(text),
modifier = modifier,
style = style,
paragraphStyle = paragraphStyle,
softWrap = softWrap,
overflow = overflow,
maxLines = maxLines,
selectionColor = selectionColor
)
}