TextDivider
fun TextDivider(containerModifier: Modifier = Modifier, textModifier: Modifier = Modifier, fillMaxWidth: Boolean = true, thickness: Dp = DividerDefaults.Thickness, dividerColor: Color = DividerDefaults.color, text: StringResource, textStyle: TextStyle = TextStyle.Default)
fun TextDivider(containerModifier: Modifier = Modifier, textModifier: Modifier = Modifier, fillMaxWidth: Boolean = true, thickness: Dp = DividerDefaults.Thickness, dividerColor: Color = DividerDefaults.color, text: String, textStyle: TextStyle = TextStyle.Default)
Component to divide sections by a representative text
Parameters
containerModifier
: the Modifier to apply to the container row
textModifier
: the Modifier to apply to the text composable
fillMaxWidth
: whether the composable must occupy the entire horizontal space
thickness
: thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density
dividerColor
: color of this divider line
text
: the text message
textStyle
: the style to apply to the text