SimpleCircularProgressBar class

Simple circular progress bar.

The values are updated with ValueNotifier, which helps to avoid unnecessary redrawing of the widget. Animation transition to a new value already built into the widget. Progress bar can be either with or without a gradient.

Inheritance

Constructors

SimpleCircularProgressBar({Key? key, double size = 100, double maxValue = 100, double startAngle = 0, double progressStrokeWidth = 15, double backStrokeWidth = 15, List<Color> progressColors = const [Colors.blueAccent, Colors.greenAccent], Color? fullProgressColor, Color backColor = const Color(0xFF16262D), int animationDuration = 6, bool mergeMode = false, ValueNotifier<double>? valueNotifier, OnGetCenterText? onGetText})
Create simple circular progress bar.
const

Properties

animationDuration int
Animation speed.
final
backColor Color
The color of the background circle.
final
backStrokeWidth double
Background circle line thickness.
final
fullProgressColor Color?
The color of the circle at 100% value. It only works when mergeMode equal to true.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxValue double
The maximum value of the progress bar.
final
mergeMode bool
When this mode is enabled the progress bar with a 100% value forms a full circle.
final
onGetText OnGetCenterText?
Callback to generate a new Text widget located in the center of the progress bar. The callback input is the current value of the bar progress.
final
progressColors List<Color>
The list of colors of the main line (one and more).
final
progressStrokeWidth double
Progress line thickness.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Widget size. Equals the height and width of the widget.
final
startAngle double
Start angle. In this position there will be a zero value.
final
valueNotifier ValueNotifier<double>?
The object designed to update the value of the progress bar.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SimpleCircularProgressBarState
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}) 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