flutter image in custom shape path
ClipPath(
clipper: _CustomClipper(),
child: Container(...),
);
flutter image in custom shape path
ClipPath(
clipper: _CustomClipper(),
child: Container(...),
);
flutter image in custom shape path
class _CustomClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final double heightDelta = size.height / 2.2;
return Path()
..addRect(
Rect.fromLTWH(0, heightDelta, size.width, size.height - heightDelta))
..moveTo(0, heightDelta)
..quadraticBezierTo(
size.width / 2,
heightDelta - size.width / 2,
size.width,
heightDelta,
);
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) => true;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us