withHorizontalPadding

fun PaddingValues.withHorizontalPadding(horizontalPadding: Dp, layoutDirection: LayoutDirection): PaddingValues

Adds the same horizontal spacing to both logical sides while preserving the existing insets and vertical padding.