CustomDivider

private fun CustomDivider(modifier: Modifier = Modifier, thickness: Dp = DividerDefaults.Thickness, color: Color = DividerDefaults.color)

Custom divider to center the text message between two lines

Parameters

modifier

: the Modifier to be applied to this divider line.

thickness

: thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density.

color

: color of this divider line.