0

I'm trying to make custom shape same as attached image. How can i make this custom shape using custom Painter

enter image description here

1 Answers1

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),
);