public object RemoteProgressIndicatorDefaults
Contains defaults for Remote Progress Indicators.
Properties
IndeterminateStrokeWidth
public val IndeterminateStrokeWidth: RemoteDp = 3.rdp
Default stroke width for indeterminate RemoteCircularProgressIndicator.
DefaultStrokeWidth
public val DefaultStrokeWidth: RemoteDp = 12.rdp
Default stroke width for RemoteCircularProgressIndicator.
StartAngle
public val StartAngle: RemoteFloat = 270f.rf
Default start angle for RemoteCircularProgressIndicator.
CurvedIndicatorStartAngle
public val CurvedIndicatorStartAngle: RemoteFloat = 135f.rf
Default start angle for RemoteCurvedProgressIndicator.
CurvedIndicatorSweepAngle
public val CurvedIndicatorSweepAngle: RemoteFloat = 90f.rf
Default sweep angle for RemoteCurvedProgressIndicator.
CurvedIndicatorStrokeWidth
public val CurvedIndicatorStrokeWidth: RemoteDp = 8.rdp
Default stroke width for RemoteCurvedProgressIndicator.
CurvedIndicatorPadding
public val CurvedIndicatorPadding: RemoteDp = 2.rdp
Default padding from edge for RemoteCurvedProgressIndicator.
CurvedIndicatorGapAngleDegrees
public val CurvedIndicatorGapAngleDegrees: RemoteFloat = 2f.rf
Default gap angle in degrees for RemoteCurvedProgressIndicator.
CurvedIndicatorDotFadeOutFraction
public val CurvedIndicatorDotFadeOutFraction: RemoteFloat = 0.5f.rf
Default fraction of dot size below which opacity fade-out begins for RemoteCurvedProgressIndicator.
Functions
largeStrokeWidth
public fun largeStrokeWidth(screenSize: RemoteDp): RemoteDp
Large stroke width for circular progress indicator based on screenSize.
Parameters
| screenSize | Screen size in RemoteDp used to determine stroke width. |
Return
8.rdp if screenSize is less than SmallScreenBreakpoint, 12.rdp otherwise.
smallStrokeWidth
public fun smallStrokeWidth(screenSize: RemoteDp): RemoteDp
Small stroke width for circular progress indicator based on screenSize.
Parameters
| screenSize | Screen size in RemoteDp used to determine stroke width. |
Return
5.rdp if screenSize is less than SmallScreenBreakpoint, 8.rdp otherwise.
colors
@Composable
public fun colors(): RemoteProgressIndicatorColors
Creates a RemoteProgressIndicatorColors with the default colors.
calculateRecommendedGapSize
public fun calculateRecommendedGapSize(strokeWidth: RemoteDp): RemoteDp
Returns recommended size of the gap based on strokeWidth.
colors
@Composable
public 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.
colors
@Composable
public 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.