最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

flutter - How to create a wrap view that optimizes both width and height? - Stack Overflow

programmeradmin1浏览0评论

I want to render a view that wraps child widgets while optimizing the display space,the widgets have flexible quantity and size. However, using Flutter's Wrap widget doesn't achieve this. Does anyone have any ideas that could help?

As expected and in reality when using Flutter's Wrap, you can see the image below. Thank you!

I want to render a view that wraps child widgets while optimizing the display space,the widgets have flexible quantity and size. However, using Flutter's Wrap widget doesn't achieve this. Does anyone have any ideas that could help?

As expected and in reality when using Flutter's Wrap, you can see the image below. Thank you!

Share Improve this question edited 4 hours ago swordart asked 6 hours ago swordartswordart 11 bronze badge New contributor swordart is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 2
  • You're probably gonna have to use something like a MultiChildLayoutWidget, or package:boxy which can size each item and pack them according to rules you specify. – Randal Schwartz Commented 5 hours ago
  • Thank you for the suggestion, I will try... – swordart Commented 5 hours ago
Add a comment  | 

1 Answer 1

Reset to default 0

Try using Flutter Staggered Grid View

发布评论

评论列表(0)

  1. 暂无评论