CircularProgressIndicatorDefaults


object CircularProgressIndicatorDefaults


Summary

Constants

const @Dimension(unit = 0) Float

Large stroke width for circular progress indicator.

const @Dimension(unit = 0) Float

Small stroke width for circular progress indicator.

Public functions

@Dimension(unit = 0) Float
calculateRecommendedGapSize(strokeWidth: @Dimension(unit = 0) Float)

Returns recommended size of the gap based on strokeWidth.

ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledCardColors.

ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledTonalCardColors.

ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledVariantCardColors.

Public properties

AnimationParameterBuilders.AnimationSpec

The recommended animation spec for animations from current progress to a new progress value.

Constants

LARGE_STROKE_WIDTH

Added in 1.3.0-alpha06
const val LARGE_STROKE_WIDTH = 8.0f: @Dimension(unit = 0) Float

Large stroke width for circular progress indicator.

SMALL_STROKE_WIDTH

Added in 1.3.0-alpha06
const val SMALL_STROKE_WIDTH = 4.0f: @Dimension(unit = 0) Float

Small stroke width for circular progress indicator.

Public functions

calculateRecommendedGapSize

Added in 1.3.0-alpha06
fun calculateRecommendedGapSize(strokeWidth: @Dimension(unit = 0) Float): @Dimension(unit = 0) Float

Returns recommended size of the gap based on strokeWidth.

The absolute value can be customized with gapSize parameter on circularProgressIndicator.

filledProgressIndicatorColors

fun MaterialScope.filledProgressIndicatorColors(): ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledCardColors.

filledTonalProgressIndicatorColors

fun MaterialScope.filledTonalProgressIndicatorColors(): ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledTonalCardColors.

filledVariantProgressIndicatorColors

fun MaterialScope.filledVariantProgressIndicatorColors(): ProgressIndicatorColors

Returns the recommended ProgressIndicatorColors object to be used when placing the progress indicator inside a graphic card with CardDefaults.filledVariantCardColors.

Public properties

recommendedAnimationSpec

Added in 1.3.0-alpha06
val recommendedAnimationSpecAnimationParameterBuilders.AnimationSpec

The recommended animation spec for animations from current progress to a new progress value.