CircleChart class

Help you create a Circle Chart that is used to display some kinds of reports.

Inheritance

Constructors

CircleChart({Key? key, Color backgroundColor = const Color(0xff32074e), Radius borderRadius = const Radius.circular(8), EdgeInsets padding = const EdgeInsets.all(12), double chartRadius = 60, EdgeInsets labelPadding = const EdgeInsets.all(12), Radius labelBorderRadius = const Radius.circular(8), TextStyle labelTextStyle = const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold), TextStyle itemTextStyle = const TextStyle(color: Colors.white, fontSize: 12), TextStyle itemDescriptionTextStyle = const TextStyle(color: Colors.white60, fontSize: 10), required List<CircleChartItemData> items, CircleChartType chartType = CircleChartType.dots, double chartStrokeWidth = 15, double chartCircleBackgroundStrokeWidth = 20, EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8), Duration duration = const Duration(milliseconds: 600), bool animationOnItemsChanged = true})
Create an CircleChart. It has a default style.
const

Properties

animationOnItemsChanged bool
final
backgroundColor Color
backgroundColor : the background of whole widget.
final
borderRadius Radius
borderRadius : the border radius of whole widget.
final
chartCircleBackgroundStrokeWidth double
chartCircleBackgroundStrokeWidth : stroke width of the dark circle behind the item value circle.
final
chartRadius double
chartRadius : radius to draw the circle.
final
chartStrokeWidth double
chartStrokeWidth : stroke width of the item value circle.
final
chartType CircleChartType
chartType : drawing type. See all CircleChartType.
final
duration Duration
duration : use for the animation, triggered whenever the items changes or not by animationOnItemsChanged.
final
hashCode int
The hash code for this object.
no setterinherited
itemDescriptionTextStyle TextStyle
itemDescriptionTextStyle : is the text style of description label of each item placed at the bottom of item label.
final
itemPadding EdgeInsets
itemPadding : is the padding of each item placed at the right.
final
items List<CircleChartItemData>
items : is the data to draw.
final
itemTextStyle TextStyle
itemTextStyle : is the text style of each item placed at the right.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelBorderRadius Radius
See labelTextStyle
final
labelPadding EdgeInsets
See labelTextStyle
final
labelTextStyle TextStyle
The label is used to show the total value and selected item value to focus on. labelTextStyle is used for Text. labelBorderRadius & labelPadding are used for the label background.
final
padding EdgeInsets
padding : the padding of whole widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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