AurisProgressBar class
A segmented meter: segments parallelogram-slanted cells, of which the
leading value-fraction are filled in the variant color. Trailing filled
cells sit slightly dimmed and the leading cell is full-strength with the
variant's depth glow, so the "wavefront" reads as luminous
(§spec:custom-widgets — the preferred linear-progress replacement Material's
LinearProgressIndicator cannot segment).
The slanted cell geometry (SlantClipper) is the HUD "data bar" motif,
distinct from the corner chamfer used on panels. An optional label (shown
left) and valueLabel (shown right, e.g. '68 / 100') form a header row
above the bar. All colors and the leading-cell glow resolve from the
AurisScheme; nothing is read from raw tokens.
The default constructor renders the value immediately. AurisProgressBar.animated tweens segment fills when value changes over the scheme's normal duration, honoring reduced motion by snapping to the end state (§spec:motion-performance).
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AurisProgressBar
Constructors
- AurisProgressBar({Key? key, required double value, String? label, String? valueLabel, int segments = 20, AurisProgressVariant variant = AurisProgressVariant.primary, double height = 10, double spacing = 2})
-
Creates a segmented progress meter that renders
valueimmediately.const - AurisProgressBar.animated({Key? key, required double value, String? label, String? valueLabel, int segments = 20, AurisProgressVariant variant = AurisProgressVariant.primary, double height = 10, double spacing = 2})
-
Creates a segmented progress meter that animates fills on
valuechange.const
Properties
- animated → bool
-
Whether value changes tween (
.animated) or apply immediately.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The bar height.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Optional label shown at the leading end of the header row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segments → int
-
The number of slanted cells.
final
- spacing → double
-
The gap between cells.
final
- value → double
-
The fill fraction in
0..1.final - valueLabel → String?
-
Optional value readout shown at the trailing end of the header row
(e.g.
'68 / 100').final - variant → AurisProgressVariant
-
The semantic color of the filled cells.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AurisProgressBar> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited