ProgressCircle class
A progress circle box that sets restrictions to its painter and draws it.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ProgressCircle
Constructors
- ProgressCircle({Key? key, required double boxSize, double total = 0, double completed = 0, double? completedPercent, Color progressArcColor = Colors.blue, double arcWidth = 35, bool isRoundedHead = true, IconData? headIcon, double headIconSize = 15.0, Color headIconColor = Colors.white, bool isRoundedTail = true, IconData? tailIcon, double tailIconSize = 15.0, Color tailIconColor = Colors.white, String? centerMessage, TextStyle? centerMessageStyle, Color innerColor = Colors.white, Color arcColor = const Color(0XFFEFEFF4)})
-
const
- ProgressCircle.fromPercent({Key? key, required double boxSize, required double? completedPercent, Color progressArcColor = Colors.blue, double arcWidth = 35, bool isRoundedHead = true, IconData? headIcon, double headIconSize = 15.0, Color headIconColor = Colors.white, bool isRoundedTail = true, IconData? tailIcon, double tailIconSize = 15.0, Color tailIconColor = Colors.white, String? centerMessage, TextStyle? centerMessageStyle, Color innerColor = Colors.white, Color arcColor = const Color(0XFFEFEFF4)})
-
ProgressCircle based on
completedPercent
value.const - ProgressCircle.fromValues({Key? key, required double boxSize, required double total, required double completed, Color progressArcColor = Colors.blue, double arcWidth = 35, bool isRoundedHead = true, IconData? headIcon, double headIconSize = 15.0, Color headIconColor = Colors.white, bool isRoundedTail = true, IconData? tailIcon, double tailIconSize = 15.0, Color tailIconColor = Colors.white, String? centerMessage, TextStyle? centerMessageStyle, Color innerColor = Colors.white, Color arcColor = const Color(0XFFEFEFF4)})
-
ProgressCircle based on
total
andcompleted
values.const
Properties
- arcColor → Color
-
A color of the circle's arc.
final
- arcWidth → double
-
A Circle's arc width.
final
- boxSize → double
-
A size of the widget.
final
- centerMessage → String?
-
An optional message in the center.
final
- centerMessageStyle → TextStyle?
-
A text style for the center message.
final
- completed → double
-
Completed value.
final
- completedPercent → double?
-
Complete percent e.g. 34.7%.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headIcon → IconData?
-
The head's icon.
final
- headIconColor → Color
-
The head's icon color.
final
- headIconSize → double
-
The head icon size.
final
- innerColor → Color
-
A color behind the circle.
final
- isRoundedHead → bool
-
Should the head of the curve line be rounded.
final
- isRoundedTail → bool
-
Should the tail of the curve line be rounded.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- progressArcColor → Color
-
A color of the progress curve.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tailIcon → IconData?
-
The head's icon.
final
- tailIconColor → Color
-
The tails's icon color.
final
- tailIconSize → double
-
The head icon size.
final
- total → double
-
Total value.
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