ArcWidget constructor

ArcWidget(
  1. double diameter, {
  2. double startAngle = 0.0,
  3. Color borderColor = Colors.grey,
  4. double sweepAngle = 360.0,
  5. String? middleLabel,
  6. String? aboveLabel,
  7. Color color = Colors.blue,
  8. double strokeWidth = 1.0,
})

diameter - 直径
startAngle - 开始角度
sweepAngle - 间隔角度
color - 颜色
strokeWidth - 画笔粗细

Implementation

ArcWidget(this.diameter,
    {this.startAngle = 0.0,
    this.borderColor = Colors.grey,
    this.sweepAngle = 360.0,
    this.middleLabel,
    this.aboveLabel,
    Color color = Colors.blue,
    double strokeWidth = 1.0})
    : super(
          color: color,
          width: diameter,
          height: diameter,
          strokeWidth: strokeWidth);