Flutter sliver container

孤街醉人 提交于 2019-12-21 12:29:14

问题


I'm new to flutter and I'm not able to achieve the layout I want.

I have one sliverAppBar with 3 tabs. The content of one of the tabs has to be a ScrollView compound by one container with fixed size(with an image as background) and a ListView.

I've tried to do this with a CustomScrollView but I don't know how to create the container as it is not a sliver.

Can you point me in the right direction?

Regards, Diego.


回答1:


You can simply use - SliverToBoxAdapter( child: Container(..)



来源:https://stackoverflow.com/questions/54726381/flutter-sliver-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!