I'm trying to make custom shape same as attached image. How can i make this custom shape using custom Painter
Asked
Active
Viewed 56 times
1 Answers
0
You can use plogon_clipper to make this design
import 'package:polygon_clipper/polygon_clipper.dart'; // Import package for ClipPolygon
ClipPolygon(
sides: 6,
borderRadius: 10,
rotate: 90.0,
boxShadows: [
PolygonBoxShadow(color: Colors.black, elevation: 1.0),
PolygonBoxShadow(color: Colors.grey, elevation: 5.0)
],
child: Container(color: Colors.black),
);

Sabahat Hussain Qureshi
- 1,176
- 3
- 14