Mohamed Elfiky
09/24/2020, 1:27 AMmodifier.clip(RoundedCornerShape(20.dp).background(Color.White)
and
modifier.background(color = Color.White, shape = RoundedCornerShape(20.dp))
Nader Jawad
09/24/2020, 1:42 AMMohamed Elfiky
09/24/2020, 1:44 AMNader Jawad
09/24/2020, 1:44 AMMohamed Elfiky
09/24/2020, 1:47 AMNader Jawad
09/24/2020, 1:50 AMMohamed Elfiky
09/24/2020, 1:50 AMNader Jawad
09/24/2020, 1:51 AMMohamed Elfiky
09/24/2020, 1:52 AMColton Idle
09/24/2020, 3:13 AMNader Jawad
09/24/2020, 3:15 AMMohamed Elfiky
09/24/2020, 3:30 AMNader Jawad
09/24/2020, 3:37 AMModifier.clipToBounds
or Modifier.clip(RectangleShape)
Mohamed Elfiky
09/24/2020, 3:50 AMModifier.clipToBounds
will not work with the shape in the modifier.background
write? and does RoundedCornerShape
have the same effect as RectangleShape
Nader Jawad
09/24/2020, 3:51 AMModifier.clipToBounds
will not achieve the effect you are looking for as you are using rounded corners.RoundedCornerShape
will have rounded corners with the specified radii but RectangleShape
will have squared off corners (not rounded)Mohamed Elfiky
09/24/2020, 3:55 AM