Open adrifernandev opened 6 months ago
Hi, @adrifernandev Thanks for reporting. Please update to the latest version and check if the issue still happens.
Hi 👋 I still have the issue on the 0.4.1 version : When the color changes dynamically, the text color changes but not the link color
@Composable
fun MyMarkdownText(
style: TextStyle,
text: String,
modifier: Modifier = Modifier,
color: Color,
onLinkClicked: (String)->Unit
) {
MarkdownText(
modifier = modifier,
markdown = text,
linkColor = color,
style = style.copy(color = color),
fontResource = R.font.montserrat_regular,
onLinkClicked = onLinkClicked
)
}
// Usage :
MyMarkdownText(
text = label,
style = MaterialTheme.typography.bodyMedium,
color = if(isOnError) {
textError
} else {
textColor
},
onLinkClicked = onClickOnLink
)
Hi there! When you use color that has to change for some reason it does not change so it stays with the first color that the composable receives.
I'm using version 0.3.7