INNER CODE UNIT · Dart

radius

RafaelBarbosatec/tutorial_coach_mark · lib/src/clipper/circle_clipper.dart:27

    double radius = maxSize * (1 - progress) + sizeCircle;

    return circleHolePath(size, positioned, radius);
  }

  // There is some weirdness here.  On mobile, using arcTo with `sweepAngle: 2 * pi`
  // gives the equivalent of `sweepAngle: 0`.  I couldn't find any documentation
  // of the expected behavior here, so instead I just call arcTo twice (two
  // semi-circles) to outline the full hole.
  static Path circleHolePath(
    Size size,
    Offset positioned,
    double radius,
  ) {
    return Path()
      ..moveTo(0, 0)
      ..lineTo(0, positioned.dy)
      ..arcTo(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…