RadarChart class

========== 主组件 ==========

Inheritance
Available extensions

Constructors

RadarChart.new({Key? key, required List<RadarDimension> dimensions, required List<RadarSeries> series, double radius = 72, int levels = 5, RadarGridShape gridShape = RadarGridShape.polygon, double startAngle = -90, bool clockwise = true, Paint? axisLinePaint, Paint? gridLinePaint, Paint? gridFillPaint, RadarLabelMode labelMode = RadarLabelMode.outerBadge, bool showInnerLabelBg = true, RadarOuterLabelStyle outerLabelStyle = RadarOuterLabelStyle.radial, bool showScore = true, double badgeRadius = 18, double titlePadding = 10, double titleMargin = 10, LabelPositioner? customLabelPosition, bool animate = true, Duration animationDuration = const Duration(milliseconds: 900), Curve animationCurve = Curves.easeOutCubic, TextStyle legendTextStyle = const TextStyle(fontSize: 12, color: Colors.black87), double legendSpacing = 12, double legendDotSize = 10, bool showLegend = true, ValueChanged<int>? onDimensionTapped})
const

Properties

animate bool
动画
final
animationCurve Curve
final
animationDuration Duration
final
axisLinePaint Paint?
轴线画笔
final
badgeRadius double
外侧徽章/内侧徽章的圆半径
final
clockwise bool
顺时针方向绘制
final
customLabelPosition LabelPositioner?
文本布局自定义回调(若返回非空,覆盖默认布局)
final
dimensions List<RadarDimension>
维度定义(长度 = 轴数,≥ 3)
final
gridFillPaint Paint?
网格填充(仅 polygon 模式可见,circle 模式可选填充)
final
gridLinePaint Paint?
网格画笔(线框)
final
gridShape RadarGridShape
网格形状
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelMode RadarLabelMode
标签模式:outerBadge / inner / none
final
legendDotSize double
final
legendSpacing double
final
legendTextStyle TextStyle
图例(底部水平),传 null 或空则不显示
final
levels int
网格层数(圈数/多边形层数)
final
onDimensionTapped ValueChanged<int>?
每个维度标签的点击事件
final
outerLabelStyle RadarOuterLabelStyle
当 labelMode = outerBadge 时,标题与分数徽章的布局风格
final
radius double
半径(不含标签外扩),若父级无约束会使用该半径计算尺寸
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series List<RadarSeries>
数据系列(可多组)
final
showInnerLabelBg bool
当 labelMode = inner 时,是否显示圆形背景
final
showLegend bool
final
showScore bool
是否显示分数(结合 labelMode 生效)
final
startAngle double
起始角度(度),默认 -90° 从正上方开始
final
titleMargin double
文本与徽章之间的额外间距(外侧模式)
final
titlePadding double
文本与图形的距离(外侧模式)
final

Methods

blurred({double blur = 5, Color blurColor = Colors.white, BorderRadius? borderRadius, double colorOpacity = 0.5, Widget? overlay, AlignmentGeometry alignment = Alignment.center}) Blur

Available on Widget, provided by the BlurExtension extension

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<RadarChart>
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
frosted({double blur = 5, Color frostColor = Colors.white, AlignmentGeometry alignment = Alignment.center, double? height, double? width, double frostOpacity = 0.0, BorderRadius? borderRadius, EdgeInsetsGeometry padding = EdgeInsets.zero}) Blur

Available on Widget, provided by the FrostExtension extension

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