* don't make the delete space button red * decrease room avatar size in space details header * add custom pin clipper
24 lines
601 B
Dart
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;
|
|
}
|