是否可以使用 Flutter 创建类似的东西? #设计挑战
我想知道是否有人可以帮助我使用Trutter设计这样的东西:
到目前为止,我尝试在彼此之间创建两个容器,但我不知道如何在中间制作该半圈卡。
同样,如果我们可以将此图像切成两个相等的半部分并为它们分别编写代码,那就太好了。原因是,我需要将数据放入两半,我希望高度是动态的(不是固定的)。
我想使用最佳的设计方法来创建此方法。任何帮助都将不胜感激。
I was wondering If someone could help me design something like this using Flutter :
So far, I've tried creating two containers on top of each other but I do not know how to make that semi circle in the middle of the card.
Also, It would be great If we could cut this image into two equal halves and write code for both of them separately. The reason being, I need to put data into the two halves and I want the height to be dynamic (not fixed).
I want to create this using the best design approach. Any help would be really appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我就是这样做的:
现在,由于我们将堆栈作为第二个孩子,因此我们可以在其中拥有三个孩子。
这将为我们提供所需的结果,而无需使用任何其他复杂的方法。
This is how I did it :
Now, since we have stack as the second child, we can have three children in it.
This would give us the required results without having to use any other complicated way.
使用
CustomPaint
,请在此处了解更多信息, fluttershapemaker 可以帮助您轻松完成此操作,只需绘制它或将此 SVG 转换为CustomPaint
代码。Use
CustomPaint
, read more here, and fluttershapemaker can help you do it easily by drawing it or converting this SVG toCustomPaint
code.有几种方法可以做到这一点,
我希望这有帮助
There is a couple of ways you can do that
I hope this helps