PrismLinearProgress class

A determinate or indeterminate linear progress bar with Prism tokens.

Wraps LinearProgressIndicator and adds an accessible label and a value display, which the default does not expose.

PrismLinearProgress(
  value: 0.35,
  label: 'Uploading',
)
Inheritance

Constructors

PrismLinearProgress({Key? key, double? value, String? label, bool showValue = false, Color? color, Color? backgroundColor, double height = 8, double? borderRadius})
Creates a linear progress bar.
const

Properties

backgroundColor → Color?
Track colour. Defaults to the surface container highest.
final
borderRadius → double?
Corner radius of the bar. Defaults to half the height, giving a pill.
final
color → Color?
Bar colour. Defaults to the theme's primary.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Bar height. Defaults to 8.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Accessibility label. Required when the value is set, so the user knows what is progressing.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showValue → bool
Whether to display the percentage as text.
final
value → double?
Progress in 0..1, or null for an indeterminate bar.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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