PieProgressIndicator class
The PieProgressIndicator class uses the PieProgressPainter to create a circular progress indicator. This widget draws the progress according to the value provided and allows customization of the surrounding circle's color and thickness.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PieProgressIndicator
Constructors
-
PieProgressIndicator.new({Key? key, required double value, Color? color, Color? strokeColor, double? strokeWidth, Color? backgroundColor, Animation<
Color?> ? valueColor, String? semanticsLabel, String? semanticsValue, double? size, double? valueStrokeFactor, double? backgroundStrokeFactor}) -
Constructor for PieProgressIndicator, which takes all the required parameters
to create a customizable progress indicator.
const
Properties
- backgroundColor → Color?
-
The background color.
final
- backgroundStrokeFactor → double?
-
The factor determining the thickness of the background relative to the surrounding circle.
final
- color → Color?
-
The color of the progress segment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsLabel → String?
-
Adds a label for accessibility purposes.
final
- semanticsValue → String?
-
Adds a value for accessibility purposes.
final
- size → double?
-
The size of the indicator. If not provided, the size is determined automatically.
final
- strokeColor → Color?
-
The color of the surrounding circle.
final
- strokeWidth → double?
-
The thickness of the surrounding circle.
final
- value → double
-
The progress value, ranging from 0.0 to 1.0.
final
-
valueColor
→ Animation<
Color?> ? -
The animation for the progress color.
final
- valueStrokeFactor → double?
-
The factor determining the thickness of the progress segment relative to the surrounding circle.
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