简体   繁体   English

如何使用 flutter 中的自定义画家制作附加图像

[英]How to make attached image using Custom Painter in flutter

I'm trying to make custom shape same as attached image.我正在尝试使自定义形状与附加图像相同。 How can i make this custom shape using custom Painter image link: https://drive.google.com/file/d/1HSVUZGwteed8jUANfhPo9BePAaso4DI8/view?usp=sharing如何使用自定义 Painter 图像链接制作此自定义形状: https://drive.google.com/file/d/1HSVUZGwteed8jUANfhPo9BePAaso4DI8/view?usp=sharing

You can use plogon_clipper to make this design您可以使用plogon_clipper进行此设计

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM