StringWidget constructor

StringWidget(
  1. String text, {
  2. VerticalAlign verticalAlign = VerticalAlign.center,
  3. TextAlign horizontalTextAlign = TextAlign.center,
  4. double fontSize = 12,
  5. double rotateAngle = 0.0,
  6. Color color = Colors.black,
  7. double width = 50,
  8. double height = 50,
})

rotateAngle - 居中旋转

Implementation

StringWidget(this.text,
    {this.verticalAlign = VerticalAlign.center,
    this.horizontalTextAlign = TextAlign.center,
    this.fontSize = 12,
    this.rotateAngle = 0.0,
    Color color = Colors.black,
    double width = 50,
    double height = 50})
    : super(color: color, width: width, height: height);