hi there community, do you know to set the bottom ...
# compose-android
k
hi there community, do you know to set the bottom paddingvalue to 0.dp if it is an scaffold
Copy code
{ paddingValues ->
    Column(
        verticalArrangement = Arrangement.SpaceBetween,
        horizontalAlignment = Alignment.CenterHorizontally,
        modifier = Modifier
            .padding(paddingValues)
            .fillMaxHeight(),
    ) {
        KioskPaymentDialogHeader(total = total)
        KioskPaymentDialogStepOrderSummary(
            actionText = stringResource(R.string.kiosk_accept_cash),
            instructionNote = stringResource(R.string.kiosk_accept_cash_description)
        )
s
Maybe a screenshot of what you want to happen and what is happening would help
k
The scaffold add a bottom padding value so that is why i can not send the button at the end and i want to set the bottom paddinValue to 0.dp
s
It may be adding insets by default, in the Scaffold there’s a
contentWindowInsets
parameter in which you can see if you can pass WindowInsets(0.dp) and see if that’s what you need instead?
k
but if i want to set it just for the bottom value
s
Take whatever the default parameter already is for
contentWindowInsets
and do
.only(<http://WindowInsetsSides.Top|WindowInsetsSides.Top> + WindowInsetsSides.Horizontal)
on it.
k
that works with windowInsets thank you 🙌
💪 1