All Downloads are FREE. Search and download functionalities are using the official Maven repository.

composeUiMain.com.huanshankeji.compose.foundation.layout.ext.OuterPadding.composeUi.kt Maven / Gradle / Ivy

Go to download

Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML

The newest version!
package com.huanshankeji.compose.foundation.layout.ext

import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import com.huanshankeji.compose.foundation.layout.PaddingValues
import com.huanshankeji.compose.foundation.layout.absolutePadding
import com.huanshankeji.compose.foundation.layout.padding
import com.huanshankeji.compose.ui.Modifier

@Stable
actual fun Modifier.outerPadding(start: Dp, top: Dp, end: Dp, bottom: Dp): Modifier =
    padding(start, top, end, bottom)

@Stable
actual fun Modifier.outerPadding(horizontal: Dp, vertical: Dp): Modifier =
    padding(horizontal, vertical)

@Stable
actual fun Modifier.outerPadding(all: Dp): Modifier =
    padding(all)

@Stable
actual fun Modifier.outerPadding(paddingValues: PaddingValues): Modifier =
    padding(paddingValues)

@Stable
actual fun Modifier.absoluteOuterPadding(left: Dp, top: Dp, right: Dp, bottom: Dp): Modifier =
    absolutePadding(left, top, right, bottom)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy