在 Flutter 中剪辑后删除多余的部分
本文介绍了在 Flutter 中剪辑后删除多余的部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
剪辑允许我只绘制我想要显示的部分.怎么去掉多余的部分没有画出来但还是占空间?
Clipping allows me to draw only the part which I want to show. How do I remove the extra part which is not drawn but still takes up space?
代码
推荐答案
我的解决方案
我最近遇到了类似的问题(我需要将图像剪成两半)并在 flutter api 站点(使用其他对齐点来改变切片行为)- 没有多余的空间:
My Solution
I had a similar problem recently (I needed to clip the image in half) and found this sample code on the flutter api site (use the other alignment points to change slicing behaviors) - no extra space left over:
这篇关于在 Flutter 中剪辑后删除多余的部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!