Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clip in ConstraintLayout in Jetpack Compose not working

I want to make corners of ConstraintLayout rounded without using CardView. My current code is this but not working

ConstraintLayout(
    modifier
        .fillMaxWidth()
        .clip(RoundedCornerShape(100.dp))
        )
{...}
like image 219
Talha Akbar Avatar asked Sep 17 '25 17:09

Talha Akbar


1 Answers

It is working guys, I just added background after clip() and it's working fine.

like image 142
Talha Akbar Avatar answered Sep 19 '25 06:09

Talha Akbar