Skip to content

ProgressBar

A horizontal bar for task progress. A value from 0 to 1 fills the bar proportionally; null shows an indeterminate sweep for work of unknown length.

See also: Gauge for a labeled meter with thresholds · Spinner for activity without a known end.

Import: package:fleury/fleury.dart, or package:fleury/fleury_core.dart in browser code.

ProgressBar(value: 0.45)

The bar fills the available width — bound it with a SizedBox for a fixed length — and renders sub-cell precision with eighth-block glyphs, so a 4.5-cell fill shows four full blocks plus a half block rather than rounding. For a status reading such as CPU or disk use, use Gauge.

ParameterTypeDefaultDescription
value:double?requiredFraction filled, clamped to 0..1. Pass null for an indeterminate bar — a block sweeps across the track for work of unknown duration (the convention is to never show a determinate shape when progress is unknown).
filledStyle:CellStyle?—Style for the filled portion (the blocks).
trackStyle:CellStyle?—Style for the unfilled track.
semanticLabel:String'Progress'Label exposed through the semantic app graph.

ProgressBar is defined in packages/fleury/lib/src/catalog/progress_bar.dart.

Category: Charts & meters · All widgets