--

You can also achieve it by (alternative to The Easy Way):

`

modifier = Modifier

.graphicsLayer {

shape = RoundedCornerShape(20.dp)

clip = true

}

.clickable { onClick.invoke() }

`

I find it easier in situations where we could have specified a Shape, this way ripple will respect shape.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Guilherme Delgado
Guilherme Delgado

Written by Guilherme Delgado

Software Engineer at BlissApplications 🇵🇹 • github.com/GuilhE • When I’m not coding I’m 🧗🏽or 🏄‍♂️

No responses yet

Write a response