INNER CODE UNIT · Dart

w

RafaelBarbosatec/tutorial_coach_mark · lib/src/clipper/rect_clipper.dart:35

    double w = maxSize * (1 - progress) + target.size.width + offset;
    double h = maxSize * (1 - progress) + target.size.height + offset;

    return radius > 0
        ? rRectHolePath(size, x, y, w, h, radius)
        : rectHolePath(size, x, y, w, h);
  }

  @override
  bool shouldReclip(covariant RectClipper oldClipper) {
    return progress != oldClipper.progress;
  }

  static Path rectHolePath(
    Size canvasSize,
    double x,
    double y,
    double w,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…