flutter custom clipper package code example
Example: flutter CustomPaint clip
ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25.0),
topRight: Radius.circular(25.0),
bottomRight: Radius.circular(25.0),
),
child: CustomPaint(
painter: (...),
child: (...),
),
)