ClockWidget constructor

ClockWidget(
  1. DateTime datetime, {
  2. Color handColor = Colors.black,
  3. Color numberColor = Colors.black,
  4. Color borderColor = Colors.black,
  5. Color color = Colors.blue,
  6. double strokeWidth = 1.0,
  7. double width = 100,
  8. double height = 100,
})

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

Implementation

ClockWidget(
  this.datetime, {
  this.handColor = Colors.black,
  this.numberColor = Colors.black,
  this.borderColor = Colors.black,
  Color color = Colors.blue,
  double strokeWidth = 1.0,
  double width = 100,
  double height = 100,
}) : super(
          color: color,
          width: width,
          height: height,
          strokeWidth: strokeWidth);