chore: remove Buy Me a Coffee references (account suspended)

This commit is contained in:
zarzet
2026-02-10 20:46:45 +07:00
parent b6574f0097
commit bae2bf63eb
36 changed files with 3 additions and 344 deletions
-77
View File
@@ -84,83 +84,6 @@ class _KofiPainter extends CustomPainter {
bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
}
class BmacIcon extends StatelessWidget {
final double size;
final Color color;
const BmacIcon({super.key, this.size = 22, this.color = Colors.black87});
@override
Widget build(BuildContext context) {
return CustomPaint(
size: Size(size, size),
painter: _BmacPainter(color),
);
}
}
class _BmacPainter extends CustomPainter {
final Color color;
_BmacPainter(this.color);
@override
void paint(Canvas canvas, Size size) {
final s = size.width;
final paint = Paint()
..color = color
..style = PaintingStyle.fill;
// Cup body (slightly tapered)
final cup = Path()
..moveTo(s * 0.15, s * 0.35)
..lineTo(s * 0.20, s * 0.82)
..quadraticBezierTo(s * 0.20, s * 0.90, s * 0.28, s * 0.90)
..lineTo(s * 0.56, s * 0.90)
..quadraticBezierTo(s * 0.64, s * 0.90, s * 0.64, s * 0.82)
..lineTo(s * 0.69, s * 0.35)
..close();
canvas.drawPath(cup, paint);
// Cup rim
final rim = RRect.fromRectAndRadius(
Rect.fromLTWH(s * 0.10, s * 0.30, s * 0.64, s * 0.10),
Radius.circular(s * 0.05),
);
canvas.drawRRect(rim, paint);
// Handle
final handlePaint = Paint()
..color = color
..style = PaintingStyle.stroke
..strokeWidth = s * 0.07
..strokeCap = StrokeCap.round;
final handle = Path()
..moveTo(s * 0.69, s * 0.42)
..quadraticBezierTo(s * 0.90, s * 0.42, s * 0.90, s * 0.56)
..quadraticBezierTo(s * 0.90, s * 0.70, s * 0.69, s * 0.70);
canvas.drawPath(handle, handlePaint);
// Steam
final steamPaint = Paint()
..color = color.withValues(alpha: 0.5)
..style = PaintingStyle.stroke
..strokeWidth = s * 0.04
..strokeCap = StrokeCap.round;
for (var i = 0; i < 3; i++) {
final sx = s * (0.26 + i * 0.14);
final steam = Path()
..moveTo(sx, s * 0.26)
..quadraticBezierTo(sx + s * 0.03, s * 0.18, sx, s * 0.10);
canvas.drawPath(steam, steamPaint);
}
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) => false;
}
class GitHubIcon extends StatelessWidget {
final double size;
final Color color;