padding
expect fun Modifier.padding(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): Modifier(source)
Deprecated
Use `outerPadding` or check out `innerPadding` instead.
Replace with
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
Content copied to clipboard
this.outerPadding(start, top, end, bottom)Content copied to clipboard
See the KDoc of the overload with one Dp parameter for platform differences.
Deprecated
Use `outerPadding` or check out `innerPadding` instead.
Replace with
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
Content copied to clipboard
this.outerPadding(horizontal, vertical)Content copied to clipboard
See the KDoc of the overload with one Dp parameter for platform differences.
Deprecated
Use `outerPadding` or check out `innerPadding` instead.
Replace with
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
Content copied to clipboard
this.outerPadding(all)Content copied to clipboard
Padding works differently on Compose UI and CSS. In Compose UI, the padding modifier adds a layer of wrapper around the component, and order of modifiers matters; while in CSS, this function delegates to the margin CSS properties.
See also
Deprecated
Use `outerPadding` or check out `innerPadding` instead.
Replace with
import com.huanshankeji.compose.foundation.layout.ext.outerPadding
Content copied to clipboard
this.outerPadding(paddingValues)Content copied to clipboard
See the KDoc of the overload with one Dp parameter for platform differences.