Closed robercoding closed 3 months ago
As a temporary option, defining a custom modifier with the same property is suitable for me:
MarkdownText(
markdown = "",
modifier = Modifier
.clickable(
enabled = false,
onClick = {},
),
)
Currently clicking on the MarkdownText shows up the ripple. I'd like to have the ability to enable it or not.
Although the
MarkdownText
gives the ability to add an action happening on click. The ripple still happens it's null. TheAndroidView
has aclickable
modifier that is enabled by default, and there's no way to disable it.modifier = Modifier.clickable { onClick?.let { it() } }.then(modifier)
If this clickable is the responsible for adding the ripple then I see 3 ways to add the option to enable it or not:
onClick: (() -> Unit)? = null
parameter to do the check. Something like this.Modifier.clickable(enabled = onClick != null) { onClick?.let { it() } }
Although it looks too aggressive from my point of view.Lib version: 0.5.1
What do you think?