PreferenceContentText
fun PreferenceContentText(text: String, itemSetup: PreferenceItemSetup, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, lineHeight: TextUnit = TextUnit.Unspecified, softWrap: Boolean = true, minLines: Int = 1, onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current)
this is the default text content composable for all preferences which does automatically apply all settings to this text (e.g. maxLines, alignment, ...)
In most cases this should be used by any custom preference if it shows some text inside its content area. It offers all settings of a default Text that are not specifically defined by the local PreferenceSettings
Parameters
text
the text
modifier
the Modifier for this composable
color
a custom Color
fontSize
a custom TextUnit
fontStyle
a custom FontStyle
fontWeight
a custom FontWeight
letterSpacing
a custom TextUnit
textDecoration
a custom TextDecoration
softWrap
a custom flag to enable soft wrap
minLines
defines what's the minimum number of lines is
onTextLayout
a callback for when the layout is ready
style
a custom TextStyle