RemoteProgressIndicatorDefaults

object RemoteProgressIndicatorDefaults


Contains defaults for Remote Progress Indicators.

Summary

Constants

const Int

Default animation duration in milliseconds for progress indicators.

Public functions

RemoteDp

Returns recommended size of the gap based on strokeWidth.

RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with the default colors.

RemoteProgressIndicatorColors
@Composable
@RemoteComposable
colors(
    indicatorBrush: RemoteBrush?,
    trackBrush: RemoteBrush?,
    overflowTrackBrush: RemoteBrush?,
    disabledIndicatorBrush: RemoteBrush?,
    disabledTrackBrush: RemoteBrush?,
    disabledOverflowTrackBrush: RemoteBrush?
)

Creates a RemoteProgressIndicatorColors with modified brushes.

RemoteProgressIndicatorColors
@Composable
@RemoteComposable
colors(
    indicatorColor: RemoteColor?,
    trackColor: RemoteColor?,
    overflowTrackColor: RemoteColor?,
    disabledIndicatorColor: RemoteColor?,
    disabledTrackColor: RemoteColor?,
    disabledOverflowTrackColor: RemoteColor?
)

Creates a RemoteProgressIndicatorColors with modified colors.

Constants

AnimationDurationMillis

Added in 1.0.0-alpha10
const val AnimationDurationMillis = 125: Int

Default animation duration in milliseconds for progress indicators.

Public functions

calculateRecommendedGapSize

Added in 1.0.0-alpha10
fun calculateRecommendedGapSize(strokeWidth: RemoteDp): RemoteDp

Returns recommended size of the gap based on strokeWidth.

colors

Added in 1.0.0-alpha10
@Composable
@RemoteComposable
fun colors(
    indicatorBrush: RemoteBrush? = null,
    trackBrush: RemoteBrush? = null,
    overflowTrackBrush: RemoteBrush? = null,
    disabledIndicatorBrush: RemoteBrush? = null,
    disabledTrackBrush: RemoteBrush? = null,
    disabledOverflowTrackBrush: RemoteBrush? = null
): RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with modified brushes.

colors

Added in 1.0.0-alpha10
@Composable
@RemoteComposable
fun colors(
    indicatorColor: RemoteColor? = null,
    trackColor: RemoteColor? = null,
    overflowTrackColor: RemoteColor? = null,
    disabledIndicatorColor: RemoteColor? = null,
    disabledTrackColor: RemoteColor? = null,
    disabledOverflowTrackColor: RemoteColor? = null
): RemoteProgressIndicatorColors

Creates a RemoteProgressIndicatorColors with modified colors.

Public properties

CurvedIndicatorDotCollapseFreezeFraction

Added in 1.0.0-alpha10
val CurvedIndicatorDotCollapseFreezeFractionRemoteFloat

Default dot collapse freeze fraction for RemoteCurvedProgressIndicator.

CurvedIndicatorGapAngleDegrees

Added in 1.0.0-alpha10
val CurvedIndicatorGapAngleDegreesRemoteFloat

Default gap angle in degrees for RemoteCurvedProgressIndicator.

CurvedIndicatorPadding

Added in 1.0.0-alpha10
val CurvedIndicatorPaddingRemoteDp

Default padding from edge for RemoteCurvedProgressIndicator.

CurvedIndicatorStartAngle

Added in 1.0.0-alpha10
val CurvedIndicatorStartAngleRemoteFloat

Default start angle for RemoteCurvedProgressIndicator.

CurvedIndicatorStrokeWidth

Added in 1.0.0-alpha10
val CurvedIndicatorStrokeWidthRemoteDp

Default stroke width for RemoteCurvedProgressIndicator.

CurvedIndicatorSweepAngle

Added in 1.0.0-alpha10
val CurvedIndicatorSweepAngleRemoteFloat

Default sweep angle for RemoteCurvedProgressIndicator.