Skip to content

Commit

Permalink
Missed a change in Material
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Apr 8, 2024
1 parent a080af7 commit 82e3614
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.Modifier
import com.halilibo.richtext.ui.BasicRichText
import com.halilibo.richtext.ui.LinkClickHandler
import com.halilibo.richtext.ui.LocalLinkClickHandler
import com.halilibo.richtext.ui.RichTextScope
import com.halilibo.richtext.ui.RichTextStyle
import com.halilibo.richtext.ui.RichTextThemeProvider
Expand All @@ -28,12 +29,13 @@ public fun RichText(
children: @Composable RichTextScope.() -> Unit
) {
RichTextMaterialTheme {
BasicRichText(
modifier = modifier,
style = style,
linkClickHandler = linkClickHandler,
children = children
)
CompositionLocalProvider(LocalLinkClickHandler provides linkClickHandler) {
BasicRichText(
modifier = modifier,
style = style,
children = children
)
}
}
}

Expand Down

0 comments on commit 82e3614

Please sign in to comment.