fluffychat/lib/pangea/course_settings/pin_clipper.dart
ggurdin f632f1fbae
3806 course planner feedback (#3808)
* don't make the delete space button red

* decrease room avatar size in space details header

* add custom pin clipper
2025-08-26 10:41:33 -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(20),
);
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;
}