Skip to content

Instantly share code, notes, and snippets.

@nikit19
Created October 15, 2021 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikit19/d8d4beb7e7b4bc01759df046c34f61fb to your computer and use it in GitHub Desktop.
Save nikit19/d8d4beb7e7b4bc01759df046c34f61fb to your computer and use it in GitHub Desktop.
@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