API reference

Modifier Interface

Extension Functions

fillWidthOfParent ( parentPadding )
Modifier that fills the width of its parent with a padding.
Signature
fun Modifier.fillWidthOfParent(parentPadding: Dp): Modifier
Extension declared in com.meta.spatial.uiset.util.extension
Parameters
parentPadding: Dp  The padding to apply to the parent.
Returns
Modifier  A modified Modifier with the width of the parent and padding applied.
innerShadow ( shape , color , blur , offsetY , offsetX , spread )
Adds an inner shadow effect to the content.
Signature
fun Modifier.innerShadow(
    shape: Shape,
    color: Color,
    blur: Dp,
    offsetY: Dp,
    offsetX: Dp,
    spread: Dp,
): Modifier
Extension declared in com.meta.spatial.uiset.util.extension
Parameters
shape: Shape  The shape of the shadow.
color: Color  The color of the shadow.
blur: Dp  The blur radius of the shadow.
offsetY: Dp  The shadow offset along the Y-axis.
offsetX: Dp  The shadow offset along the X-axis.
spread: Dp  The amount to expand the shadow beyond its size.
Returns
Modifier  A modified Modifier with the inner shadow effect applied.
scaleOnPressed ( scaleFactor , animationDuration , interactionSource )
Modifier that scales the content when pressed.
Make sure to use this modifier as the first one in the modifier chain to ensure the correct clipping behavior.
Signature
fun Modifier.scaleOnPressed(scaleFactor: Float = ScaleFactor, animationDuration: Int = AnimationDuration, interactionSource: MutableInteractionSource) }): Modifier
Extension declared in com.meta.spatial.uiset.util.extension
Parameters
scaleFactor: Float  The scale factor to apply when pressed.
animationDuration: Int  The duration of the animation.
interactionSource: MutableInteractionSource  The MutableInteractionSource to use for the interaction.
Returns
Modifier  A modified Modifier with the scaling effect applied.