Skip to content

Commit

Permalink
HtmlText parameter order
Browse files Browse the repository at this point in the history
color is ordered behind modifier and the parameter names are added in HtmlText call
  • Loading branch information
Nailik authored May 10, 2022
1 parent 0574627 commit 194552d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ fun Libraries(
modifier = Modifier.verticalScroll(scrollState),
) {
HtmlText(
library.licenses.firstOrNull()?.htmlReadyLicenseContent.orEmpty(),
colors.contentColor,
html = library.licenses.firstOrNull()?.htmlReadyLicenseContent.orEmpty(),
color = colors.contentColor,
)
}
},
Expand All @@ -136,7 +136,7 @@ fun Libraries(
}

@Composable
fun HtmlText(html: String, color: Color, modifier: Modifier = Modifier) {
fun HtmlText(html: String, modifier: Modifier = Modifier, color: Color) {
AndroidView(
modifier = modifier,
factory = { context -> TextView(context).apply { setTextColor(color.toArgb()) } },
Expand Down

0 comments on commit 194552d

Please sign in to comment.