-
public final class FadeAwayKt
-
-
Method Summary
Modifier and Type Method Description final static ModifierfadeAway(Modifier $self, Function0<ScrollState> scrollStateFn)Scroll Away the item based on a regular scrolling item, like a Column. final static ModifierfadeAwayLazyList(Modifier $self, Function0<LazyListState> scrollStateFn)Scroll Away the item based on a lazy list, like a LazyColumn. final static ModifierfadeAwayScalingLazyList(Modifier $self, Integer initialIndex, Integer initialOffset, Function0<ScalingLazyListState> scrollStateFn)Scroll Away the item based on a ScalingLazyColumn. -
-
Method Detail
-
fadeAway
@Deprecated(message = Replaced by scrollAway, replaceWith = @ReplaceWith(imports = {com.google.android.horologist.compose.layout.scrollAway}, expression = this.scrollAway(scrollStateFn()))) final static Modifier fadeAway(Modifier $self, Function0<ScrollState> scrollStateFn)
Scroll Away the item based on a regular scrolling item, like a Column. Does not include fading or scaling.
-
fadeAwayLazyList
@Deprecated(message = Replaced by scrollAway, replaceWith = @ReplaceWith(imports = {com.google.android.horologist.compose.layout.scrollAway}, expression = this.scrollAway(scrollStateFn()))) final static Modifier fadeAwayLazyList(Modifier $self, Function0<LazyListState> scrollStateFn)
Scroll Away the item based on a lazy list, like a LazyColumn. Does not include fading or scaling.
The logic assumes the first item is large enough to fully fade away the item, if this is not the case then a custom implementation should be used.
-
fadeAwayScalingLazyList
@Deprecated(message = Replaced by scrollAway, replaceWith = @ReplaceWith(imports = {com.google.android.horologist.compose.layout.scrollAway, androidx.compose.ui.unit.dp}, expression = this.scrollAway(scrollStateFn(), initialIndex, initialOffset.dp))) final static Modifier fadeAwayScalingLazyList(Modifier $self, Integer initialIndex, Integer initialOffset, Function0<ScalingLazyListState> scrollStateFn)
Scroll Away the item based on a ScalingLazyColumn. The item is scaled and faded roughly in line with the default scaling params of ScalingLazyColumn, if this is not the case, a custom implementation should be used.
The logic assumes the first item is large enough to fully fade away the item, if this is not the case then a custom implementation should be used.
- Parameters:
initialIndex- The initial index must match that provided to ScalingLazyListState.initialOffset- The initial offset must match that provided to ScalingLazyListState.
-
-
-
-