ProgressBar

constructor(total: Long = 100, completed: Long = 0, indeterminate: Boolean = false, width: Int? = null, pulsePosition: Float = 0.0f, showPulse: Boolean? = null, pendingChar: String? = null, separatorChar: String? = null, completeChar: String? = null, pendingStyle: TextStyle? = null, separatorStyle: TextStyle? = null, completeStyle: TextStyle? = null, finishedStyle: TextStyle? = null, indeterminateStyle: TextStyle? = null)

Parameters

total

The bar draws the fraction complete as completed

completed

The bar draws the fraction complete as completed

indeterminate

If true, total and completed are ignored and the bar draws in an indeterminate state

width

The width in characters for this widget

pulsePosition

When indeterminate is true, the pulse animation is drawn at a fraction along the bar calculated by pulsePosition % 1.0

showPulse

(theme flag: "progressbar.pulse") If false, never draw the pulse animation in the indeterminate state.

pendingChar

(theme string: "progressbar.pending") The character to use to draw the pending portion of the bar in the active state.

separatorChar

(theme string: "progressbar.separator") The character to draw in between the competed and pending bar in the active state.

completeChar

(theme string: "progressbar.complete") The character to use to draw the completed portion of the bar in the active state.

pendingStyle

(theme style: "progressbar.pending") The style to use for the pendingChars

separatorStyle

(theme style: "progressbar.separator") The style to use for the separatorChar

completeStyle

(theme style: "progressbar.complete") The style to use for the completeChar when completed<total

finishedStyle

(theme style: "progressbar.complete") The style to use for the completeChar when total<= completed

indeterminateStyle

e (theme style: "progressbar.separator") The style to use when indeterminate is true


constructor(fractionComplete: Float = 0.0f, indeterminate: Boolean = false, width: Int? = null, pulsePosition: Float = 0.0f, showPulse: Boolean? = null, pendingChar: String? = null, separatorChar: String? = null, completeChar: String? = null, pendingStyle: TextStyle? = null, separatorStyle: TextStyle? = null, completeStyle: TextStyle? = null, finishedStyle: TextStyle? = null, indeterminateStyle: TextStyle? = null)

Parameters

fractionComplete

A number between 0 and 1, with 0 drawing all pendingChars, and 1 drawing all completeChars

indeterminate

If true, fractionComplete is ignored and the bar draws in an indeterminate state

width

The width in characters for this widget

pulsePosition

When indeterminate is true, the pulse animation is drawn at a fraction along the bar calculated by pulsePosition % 1.0

showPulse

(theme flag: "progressbar.pulse") If false, never draw the pulse animation in the indeterminate state.

pendingChar

(theme string: "progressbar.pending") The character to use to draw the pending portion of the bar in the active state.

separatorChar

(theme string: "progressbar.separator") The character to draw in between the competed and pending bar in the active state.

completeChar

(theme string: "progressbar.complete") The character to use to draw the completed portion of the bar in the active state.

pendingStyle

(theme style: "progressbar.pending") The style to use for the pendingChars

separatorStyle

(theme style: "progressbar.separator") The style to use for the separatorChar

completeStyle

(theme style: "progressbar.complete") The style to use for the completeChar when fractionComplete< 1

finishedStyle

(theme style: "progressbar.complete") The style to use for the completeChar when fractionComplete == 1

indeterminateStyle

e (theme style: "progressbar.separator") The style to use when indeterminate is true