Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created October 15, 2021 19:09
Embed
What would you like to do?
@Composable
fun TimeText(
modifier: Modifier = Modifier,
timeSource: TimeSource = TimeTextDefaults.timeSource(timeFormat()),
timeTextStyle: TextStyle = TimeTextDefaults.timeTextStyle(),
contentPadding: PaddingValues = TimeTextDefaults.ContentPadding,
leadingLinearContent: (@Composable () -> Unit)? = null,
leadingCurvedContent: (@Composable CurvedRowScope.() -> Unit)? = null,
trailingLinearContent: (@Composable () -> Unit)? = null,
trailingCurvedContent: (@Composable CurvedRowScope.() -> Unit)? = null,
textLinearSeparator: @Composable () -> Unit = { TextSeparator(textStyle = timeTextStyle) },
textCurvedSeparator: @Composable CurvedRowScope.() -> Unit = {
CurvedTextSeparator(curvedTextStyle = CurvedTextStyle(timeTextStyle))
},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment