-
public final class FadingEdgesExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static FadingEdgesFadingEdges(Dp startEdgeWidth, Dp endEdgeWidth, Dp visibilityThreshold, Easing visibilityEasing)FadingEdges applies a horizontal fade to the edges of the chart area for scrollable charts. final static FadingEdgesrememberFadingEdges(Dp startEdgeWidth, Dp endEdgeWidth, Dp visibilityThreshold, Easing visibilityEasing)Creates and remembers a FadingEdges instance. final static FadingEdgesrememberFadingEdges(Dp edgeWidth, Dp visibilityThreshold, Easing visibilityEasing)Creates and remembers a FadingEdges instance. -
-
Method Detail
-
FadingEdges
final static FadingEdges FadingEdges(Dp startEdgeWidth, Dp endEdgeWidth, Dp visibilityThreshold, Easing visibilityEasing)
FadingEdges applies a horizontal fade to the edges of the chart area for scrollable charts. This effect indicates that there’s more content beyond a given edge, and the user can scroll to reveal it.
- 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.
-
rememberFadingEdges
@Composable() final static FadingEdges rememberFadingEdges(Dp startEdgeWidth, Dp endEdgeWidth, Dp visibilityThreshold, Easing visibilityEasing)
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.
-
rememberFadingEdges
@Composable() final static FadingEdges rememberFadingEdges(Dp edgeWidth, Dp visibilityThreshold, Easing visibilityEasing)
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.
-
-
-
-