It\'s clear how to draw a shadow with an elevation property but what if I want to have the shadow centered for example?
To draw shadow on CustomPaint you can use painter.
CustomPaint
CustomPaint( painter: BoxShadowPainter(), child: ClipPath( clipper: MyClipper(), //my CustomClipper child: Container(), // my widgets inside )));
check my answer here