rememberFadingEdges

fun rememberFadingEdges(startEdgeWidth: Dp = FadingEdgesDefaults.edgeWidth, endEdgeWidth: Dp = FadingEdgesDefaults.edgeWidth, visibilityThreshold: Dp = FadingEdgesDefaults.visibilityThreshold, visibilityEasing: Easing = FadingEdgesDefaults.visibilityEasing): FadingEdges

Creates and remembers a FadingEdges instance.

Parameters

startEdgeWidth

the width of the fade overlay for the start edge (in dp).

endEdgeWidth

the width of the fade overlay for the end edge (in dp).

visibilityThreshold

the scroll distance over which the overlays fade in and out (in dp).

visibilityEasing

used for the fading edges’ fade-in and fade-out animations. This is a mapping of the degree to which visibilityThreshold has been satisfied to the opacity of the fading edges.

See also


fun rememberFadingEdges(edgeWidth: Dp = FadingEdgesDefaults.edgeWidth, visibilityThreshold: Dp = FadingEdgesDefaults.visibilityThreshold, visibilityEasing: Easing = FadingEdgesDefaults.visibilityEasing): FadingEdges

Creates and remembers a FadingEdges instance.

Parameters

edgeWidth

the width of the fade overlay.

visibilityThreshold

the scroll distance over which the overlays fade in and out (in dp).

visibilityEasing

used for the fading edges’ fade-in and fade-out animations. This is a mapping of the degree to which visibilityThreshold has been satisfied to the opacity of the fading edges.

See also