I have a column with many items, and I want to set the padding for the column because all items have the same padding except one of them which doesn't have padding, how can I consider an exception for that specific item? Or is it possible to add an attribute that says don't get your parent padding? I know I can remove padding for column and add one by one, but I want to ask anybody knows that, is there any other way?
Column(
modifier = Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState()),
.padding(16.dp),
verticalArrangement = Arrangement.spacedBy(16.dp)
) {
Text(text = "Teaser1")
Text(text = "Teaser2")
Text(text = "Teaser3")
Text(text = "Teaser")
Text(text = "Teaser4")
Text(text = "Teaser5")
...
}
Thank you in advance for your help.