Package-level declarations

Types

Link copied to clipboard

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Properties

Link copied to clipboard
const val CrossFadeDurationMs: Int = 100

Functions

Link copied to clipboard
fun CircularProgressIndicator(modifier: Modifier = Modifier, color: Color = Color.Black, strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth, backgroundColor: Color = Color.Transparent, strokeCap: StrokeCap = StrokeCap.Square)
fun CircularProgressIndicator(@FloatRange(from = 0.0, to = 1.0) progress: Float, modifier: Modifier = Modifier, color: Color = Color.Black, strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth, backgroundColor: Color = Color.Transparent, strokeCap: StrokeCap = StrokeCap.Butt)
Link copied to clipboard
fun LinearProgressIndicator(modifier: Modifier = Modifier, color: Color = Color.Black, backgroundColor: Color = color.copy(alpha = IndicatorBackgroundOpacity), strokeCap: StrokeCap = StrokeCap.Butt)
fun LinearProgressIndicator(@FloatRange(from = 0.0, to = 1.0) progress: Float, modifier: Modifier = Modifier, color: Color = Color.Black, backgroundColor: Color = color.copy(alpha = IndicatorBackgroundOpacity), strokeCap: StrokeCap = StrokeCap.Butt)
Link copied to clipboard
fun SwipeRefreshFooter(state: UltraSwipeRefreshState, modifier: Modifier = Modifier, fade: Boolean = true, scale: Boolean = false, arrowEnabled: Boolean = true, backgroundColor: Color = Color.White, contentColor: Color = Color.Black, shape: Shape = CircleShape, paddingValues: PaddingValues = PaddingValues(12.dp), largeIndication: Boolean = false, elevation: Dp = 6.dp)

google官方样式;具体实现参见:SwipeRefreshIndicator

Link copied to clipboard
fun SwipeRefreshHeader(state: UltraSwipeRefreshState, modifier: Modifier = Modifier, fade: Boolean = true, scale: Boolean = false, arrowEnabled: Boolean = true, backgroundColor: Color = Color.White, contentColor: Color = Color.Black, shape: Shape = CircleShape, paddingValues: PaddingValues = PaddingValues(12.dp), largeIndication: Boolean = false, elevation: Dp = 6.dp)

google官方样式;具体实现参见:SwipeRefreshIndicator