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

commonMain.com.huanshankeji.compose.foundation.lazy.LazyItemScope.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.lazy

import androidx.annotation.FloatRange
import androidx.compose.runtime.Stable
import com.huanshankeji.compose.ui.Modifier

@Stable
/*
@LazyScopeMarker
@JvmDefaultWithCompatibility
*/
expect class LazyItemScope {
    fun Modifier.fillParentMaxSize(
        @FloatRange(from = 0.0, to = 1.0)
        fraction: Float = 1f
    ): Modifier

    fun Modifier.fillParentMaxWidth(
        @FloatRange(from = 0.0, to = 1.0)
        fraction: Float = 1f
    ): Modifier

    fun Modifier.fillParentMaxHeight(
        @FloatRange(from = 0.0, to = 1.0)
        fraction: Float = 1f
    ): Modifier

    /*
    @ExperimentalFoundationApi
    fun Modifier.animateItemPlacement(
        animationSpec: FiniteAnimationSpec = spring(
            stiffness = Spring.StiffnessMediumLow,
            visibilityThreshold = androidx.compose.ui.unit.IntOffset.VisibilityThreshold
        )
    ): Modifier
    */
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy