Hassaan
07/23/2023, 8:06 AMScaffold(
topBar = {
WoofTopAppBar()
}
) { it ->
LazyColumn(contentPadding = it) {
items(dogs) {
DogItem(
dog = it,
)
}
}
}
without suppressing ‘`it`’ of contentPadding
, if i want to use some PaddingValue
for contentPadding
, is there a way ?Stylianos Gakis
07/23/2023, 8:19 AMHassaan
07/23/2023, 11:03 AM@SuppressLint("UnusedMaterial3ScaffoldPaddingParameter")
using this this at top of composable, I can easily do:
Scaffold(
topBar = {
WoofTopAppBar()
}
) {
LazyColumn(contentPadding = PaddingValues(vertical = 80.dp)) {
items(dogs) {
DogItem(
dog = it,
)
}
}
}
Stylianos Gakis
07/23/2023, 11:39 AMcontentPadding = it + PaddingValues(80.dp)
or something like that.
But I've no idea what you're trying to achieve so can't be sure.Hassaan
07/23/2023, 11:45 AM