PullToRefreshState
The state of a PullToRefreshBox which tracks the distance that the container and indicator have been pulled.
Each instance of PullToRefreshBox should have its own PullToRefreshState.
PullToRefreshState can be used with other progress indicators like so:
Samples
androidx.compose.material3.samples.PullToRefreshLinearProgressIndicatorSampleProperties
Link copied to clipboard
Distance percentage towards the refresh threshold. 0.0 indicates no distance, 1.0 indicates being at the threshold offset, > 1.0 indicates overshoot beyond the provided threshold.
Link copied to clipboard
whether the state is currently animating the indicator to the threshold offset, or back to the hidden offset