fluffychat/lib/pangea/course_settings/pin_clipper.dart
ggurdin 7348e655f4
3962 usability test todos (#3973)
* in new course pages, show images

* in space analytics, if no available languages, pick user's l2

* chore: add cooldown on ping participants

* replace image loading icon with shimmer
2025-09-12 14:03:08 -04:00

24 lines
601 B
Dart

import 'package:flutter/material.dart';
class PinClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final double w = size.width;
final double h = size.height;
final Path path = Path();
path.moveTo(w * 0.1, h * 0.4);
path.arcToPoint(
Offset(w * 0.9, h * 0.4),
radius: const Radius.circular(15),
);
path.quadraticBezierTo(w * 0.9, h * 0.75, w / 2, h);
path.quadraticBezierTo(w * 0.1, h * 0.75, w * 0.1, h * 0.4);
path.close();
return path;
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) => false;
}