CircularPercentage class
A customizable circular percentage indicator widget with animation support.
This widget displays a circular progress indicator with an optional center text and footer text. The progress is animated when the percentage value changes.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CircularPercentage
Constructors
Properties
- centerStyle → TextStyle?
-
Custom text style for the center text.
final
- centerText → String?
-
Optional text to display in the center of the circular indicator.
If null, the percentage value will be shown.
final
- centerTextColor → Color?
-
Custom color for the center text. Defaults to color if not specified.
final
- color → Color
-
The color of the progress indicator and default text color.
final
-
Custom text style for the footer text.
final
-
Optional text to display below the circular indicator.
final
-
Custom color for the footer text. Defaults to color if not specified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- percentage → double
-
The percentage value to display (0-100).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
The size of the circular indicator in logical pixels.
final
- strokeWidth → double
-
The width of the progress indicator's stroke.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → CircularPercentageState -
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