LinearProgressIndicator class

A horizontal bar that fills proportionally to value (0.0–1.0).

Displays a colored bar within a fixed-height track. When value is null, shows an indeterminate animation. Supports custom backgroundColor and color.

Inheritance

Constructors

LinearProgressIndicator({Key? key, double? value, Color? backgroundColor, Color? color, int? indicatorWidth})
Creates a LinearProgressIndicator with an optional value.
const

Properties

backgroundColor Color?
The color of the unfilled track background.
final
color Color?
The color of the filled progress bar.
final
hashCode int
The hash code for this object.
no setterinherited
indicatorWidth int?
The fixed width of the indicator, or null to fill available space.
final
key Key?
Controls how one widget replaces another in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double?
The progress value between 0.0 and 1.0, or null for indeterminate.
final

Methods

createElement() StatefulElement
Creates the Element for this widget.
inherited
createState() State<LinearProgressIndicator>
Creates the mutable state for this widget.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited