17 lines
389 B
Dart
17 lines
389 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ArrowClipper extends CustomClipper<Path> {
|
|
@override
|
|
Path getClip(Size size) {
|
|
Path path = Path();
|
|
path.moveTo(0, size.height);
|
|
path.lineTo(size.width / 2, size.height / 2);
|
|
path.lineTo(size.width, size.height);
|
|
return path;
|
|
}
|
|
|
|
@override
|
|
bool shouldReclip(CustomClipper<Path> oldClipper) {
|
|
return true;
|
|
}
|
|
} |