PieSummary class

A radial chart showing proportions with custom labels and colors

Inheritance

Constructors

PieSummary.new({Key? key, required List<PieData> data, double radius = 100.0, double sectionStrokeWidth = 20.0, double sectionSpace = 2.0, LegendPosition legendPosition = LegendPosition.right, bool showLegend = true, TextStyle? legendTextStyle, Widget? centerWidget, Duration animationDuration = const Duration(milliseconds: 500), BoxDecoration? decoration, EdgeInsetsGeometry padding = const EdgeInsets.all(16.0), Widget sectionLabelBuilder(BuildContext context, PieData data, int index)?, Widget tooltipBuilder(BuildContext context, PieData data, int index)?})
Creates a PieSummary widget
const

Properties

animationDuration Duration
The animation duration for the pie chart
final
centerWidget Widget?
Optional center widget (e.g., "Total" text)
final
data List<PieData>
The data to be displayed in the pie chart
final
decoration BoxDecoration?
The decoration for the container
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
legendPosition LegendPosition
The position of the legend
final
legendTextStyle TextStyle?
The text style for the legend labels
final
padding EdgeInsetsGeometry
The padding for the container
final
radius double
The radius of the pie chart
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectionLabelBuilder Widget Function(BuildContext context, PieData data, int index)?
Custom builder for the section labels
final
sectionSpace double
The space between pie sections
final
sectionStrokeWidth double
The stroke width of the pie sections
final
showLegend bool
Whether to show the legend
final
tooltipBuilder Widget Function(BuildContext context, PieData data, int index)?
Custom tooltip builder
final

Methods

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