[英]How to return a combination of SliverAppBar and SliverList in flutter
I have an app that has a cart screen, in this screen I want to divide the ordered products according to their respective factories, so I want to use SliverAppBar
s and SliverList
s.我有一个有购物车屏幕的应用程序,在这个屏幕上我想根据他们各自的工厂来划分订购的产品,所以我想使用SliverAppBar
s 和SliverList
s。
Now what I really need is to make a custom widget that can returns a SliverAppBar
and a SliverList
together so that I build this widget and get multiple SliverAppBar
s and SliverList
s.现在我真正需要的是制作一个可以一起返回SliverAppBar
和SliverList
的自定义小部件,以便我构建这个小部件并获得多个SliverAppBar
和SliverList
。
Anyone knows how to do that?有谁知道怎么做?
我发现pub.dev一个软件包,能做到这一点,这就是所谓的sliver_tools和这里的链接到它这里
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.