Update
Logging data Try-catch function
This commit is contained in:
26
lib/product/shared/shared_rocket_container.dart
Normal file
26
lib/product/shared/shared_rocket_container.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SharedRocketContainer extends CustomClipper<Path> {
|
||||
@override
|
||||
Path getClip(Size size) {
|
||||
final double width = size.width;
|
||||
final double height = size.height;
|
||||
|
||||
const double pointyWidth = 20.0;
|
||||
|
||||
Path path = Path();
|
||||
path.moveTo(0, 0);
|
||||
path.lineTo(width - pointyWidth, 0);
|
||||
path.lineTo(width, height / 2);
|
||||
path.lineTo(width - pointyWidth, height);
|
||||
path.lineTo(0, height);
|
||||
path.close();
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
@override
|
||||
bool shouldReclip(CustomClipper<Path> oldClipper) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user