composeUiMain.com.huanshankeji.compose.foundation.lazy.LazyItemScope.composeUi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
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.lazy
import androidx.annotation.FloatRange
import androidx.compose.foundation.lazy.LazyScopeMarker
import androidx.compose.runtime.Stable
import com.huanshankeji.compose.ui.Modifier
import androidx.compose.foundation.lazy.LazyItemScope as PlatformLazyItemScope
@Stable
@LazyScopeMarker
//@JvmDefaultWithCompatibility
actual class LazyItemScope(val platformValue: PlatformLazyItemScope) {
actual fun Modifier.fillParentMaxSize(
@FloatRange(from = 0.0, to = 1.0)
fraction: Float
): Modifier =
platformModify { with(platformValue) { fillParentMaxSize(fraction) } }
actual fun Modifier.fillParentMaxWidth(
@FloatRange(from = 0.0, to = 1.0)
fraction: Float
): Modifier =
platformModify { with(platformValue) { fillParentMaxWidth(fraction) } }
actual fun Modifier.fillParentMaxHeight(
@FloatRange(from = 0.0, to = 1.0)
fraction: Float
): Modifier =
platformModify { with(platformValue) { fillParentMaxHeight(fraction) } }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy