DefaultSlideToUnlockColors
The default, concrete implementation of the SlideToUnlockColors interface.
This data class holds the specific color values and implements the logic for interpolating colors based on the swipe fraction. It is marked as Stable to ensure that Compose can perform optimizations when it is used as a parameter in a composable.
Constructors
Properties
The color of the hint text at the end of the swipe (usually transparent).
The color of the track when the thumb is at the end.
The color used for the circular progress indicator.
The color of the hint text after the slide is completed.
The color of the hint text at the start of the swipe.
The color of the track when the thumb is at the start.
An optional brush for the thumb.
The solid background color of the thumb.
The color of the icon displayed inside the thumb.
An optional brush for the track, which overrides color if non-null.
Functions
Returns the color used for the loading indicator.
Returns the hint text color after the swipe is completed.
Returns the brush to be used for the thumb, if provided.
Returns the color for the thumb background.
Returns the color for the icon inside the thumb.
Returns the brush to be used for the track, if provided.
Interpolates between startTrackColor and endTrackColor based on the swipe progress.