Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Aug 28, 2024
1 parent 1bbb48a commit 56e6827
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ public fun String.shadow(
*/
public fun String.font(fontFamily: FontFamily): AnnotatedString = annotate(SpanStyle(fontFamily = fontFamily))

/**
* Makes this string clickable. When clicked, the [onClick] lambda is invoked
*
* @return the [AnnotatedString] created
*/
public fun String.clickable(onClick: () -> Unit): AnnotatedString = annotate {
pushLink(LinkAnnotation.Clickable("clickable") { onClick() })
pushStyle(SpanStyle(textDecoration = TextDecoration.Underline))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public inline fun <reified T : Any> TypeCrossfade(
@PublishedApi
internal fun <T> Transition<T>.Crossfade(
modifier: Modifier = Modifier,
contentAlignment: Alignment,
contentAlignment: Alignment = Alignment.Center,
animationSpec: FiniteAnimationSpec<Float> = tween(),
contentKey: (targetState: T) -> Any? = { it },
content: @Composable BoxScope.(targetState: T) -> Unit
Expand Down

0 comments on commit 56e6827

Please sign in to comment.