Progress Bar
- Web Components
- Flutter
Demo
zeta-web v0.6.6
Web Components
Progress indicators express an unspecified wait time or display the length of a process.
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-progress--docs
Attributes
Name | Description | Type | Default |
---|---|---|---|
size | The size of the progress indicator. Can either be 'medium' or 'thin'. | "thin" | "medium" | "medium" |
indeterminate | Displays the indeterminate progress indicator. If set to true, any argument for 'value' will be ignored. | boolean | undefined | undefined |
value | The % complete of the process indicator. | number | 0 |
label | The label for the progress indicator. | string | undefined | undefined |
buffering | Displays the buffering dots at the end of the progress indicator.Setting this will pause the animation if 'indeterminate' is set to true. | boolean | undefined | undefined |
Inherited Attributes
Name | Description | Type | Default | Inherited From |
---|---|---|---|---|
rounded | Whether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal .Otherwise, this value will be --radius-none . | boolean | undefined | true | Contourable |
CSS Properties
Name | Description |
---|---|
--progress-bar-color | The color of the progress bar. |
Demo
Progress indicators express an unspecified wait time or display the length of a process.
Widgetbook
Inheritance
Object
> DiagnosticableTree
> Widget
> StatefulWidget
> ZetaStatefulWidget
Constructors
Constructor for ZetaProgressBar.
ZetaProgressBar.new({Key? key, bool? rounded, required double progress, ZetaProgressBarType type = ZetaProgressBarType.standard, bool isThin = false, String? label})
Constructs buffering example
ZetaProgressBar.buffering({Key? key, bool? rounded, required double progress, bool isThin = false, String? label})
Constructs indeterminate progress bar.
ZetaProgressBar.indeterminate({Key? key, bool? rounded, double progress = 0, bool isThin = false, String? label})
Constructs a standard progress bar.
ZetaProgressBar.standard({Key? key, bool? rounded, required double progress, bool isThin = false, String? label})
Properties
Name | Description | Type | Features |
---|---|---|---|
hashCode | The hash code for this object. | int | no setter inherited |
isThin | Is Progress bar thin or thick. | bool | final |
key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
label | Optional label. | String? | final |
maxValue | Maximum value for progress, defaults to 1 | double | final inherited |
progress | ZetaProgress value, decimal value ranging from 0.0 - 1.0, 0.5 = 50% | double | final inherited |
rounded | Sets rounded or sharp border of the containing box and the icon style. | bool? | final inherited |
runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
type | Type of the progress bar. | ZetaProgressBarType | final |
Methods
Name | Description | Type | Features |
---|---|---|---|
createElement() | Creates a StatefulElement to manage this widget's location in the tree. | StatefulElement | inherited |
createState() | Creates the mutable state for this widget at a given location in the tree. | State<ZetaProgressBar> | override |
debugDescribeChildren() | Returns a list of DiagnosticsNode objects describing this node's children. | List<DiagnosticsNode> | inherited |
debugFillProperties(DiagnosticPropertiesBuilder properties) | void | undefined | |
noSuchMethod(Invocation invocation) | Invoked when a nonexistent method or property is accessed. | dynamic | inherited |
paddingAll(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingBottom(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingEnd(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingHorizontal(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingStart(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingTop(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
paddingVertical(double space) | Available on Widget, provided by the SpacingWidget extension | Widget | undefined |
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) | Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. | DiagnosticsNode | inherited |
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) | A string representation of this object. | String | inherited |
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) | Returns a string representation of this node and its descendants. | String | inherited |
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) | Returns a one-line detailed description of the object. | String | inherited |
toStringShort() | A short, textual description of this widget. | String | inherited |
Figma
https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=1358-31337