BrnDoughnutChart class

BrnDoughnutChart 圆形数据展示组件 可选择使用圆形、环形来展示数据所占总数的百分比

Inheritance

Constructors

BrnDoughnutChart({double width = 0, double height = 0, EdgeInsetsGeometry padding = EdgeInsets.zero, int ringWidth = 50, required List<BrnDoughnutDataItem> data, double fontSize = 12, Color fontColor = Colors.white, BrnDoughnutDataItem? selectedItem, bool showTitleWhenSelected = false, BrnDoughnutSelectCallback? selectCallback})
create BrnDoughnutChart

Properties

data List<BrnDoughnutDataItem>
饼图数据
final
fontColor Color
选中时展示文字颜色,默认Colors.white
final
fontSize double
选中时展示文字大小,默认12
final
hashCode int
The hash code for this object.
no setterinherited
height double
高度。默认值 0
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsetsGeometry
内边距,默认 EdgeInsets.zero
final
ringWidth int
圆环宽度,默认 50
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectCallback BrnDoughnutSelectCallback?
选中项目时候的回掉
final
selectedItem BrnDoughnutDataItem?
选中的项目
final
showTitleWhenSelected bool
是否仅在选中时展示 title
final
width double
宽度。默认值 0
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}) 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