Ink
07/29/2021, 7:00 PM@Composable
fun SearchBar(label: String) {
RateMeAppTheme(isSystemInDarkTheme()) {
Row(
modifier = Modifier
.fillMaxWidth()
.wrapContentHeight()
.background(MaterialTheme.colors.onBackground)
.clip(RoundedCornerShape(20.dp))
.padding(20.dp)
) {}
}
}
but I get rectangle max width without rounded corners. Why?Chris Sinco [G]
07/29/2021, 7:02 PMclip
before background
Chris Sinco [G]
07/29/2021, 7:30 PMAndrey Kulikov
07/29/2021, 7:45 PMbackground()
. drawing the final shape is more efficient than drawing and clipping