draw method

void draw(
  1. Canvas canvas
)

Implementation

void draw(ui.Canvas canvas) {
  canvas
    ..save()
    ..translate(center.x, center.y);

  canvas
    ..scale(size.x/_skeleton!.width)       ///这里应该转为
    ..scale(_flipX ? 1 : -1, -1);
  _drawImages(canvas, _skeleton!);
}