Home > Net >  Flutter- How can I add Title to SliverList's SliverChildBuilderDelegate?
Flutter- How can I add Title to SliverList's SliverChildBuilderDelegate?

Time:12-03

I want to achieve a design similar to the below image. I have used SliverList with CustomScrollView. Now, How can I add a title to the SliverList?

enter image description here

There are multiple horizontal and vertical scroll views therefore I am using CustomScrollView to optimize the performance.

CodePudding user response:

try to use SliverToBoxAdapter between SliverList:

SliverToBoxAdapter(
  child: Text('Covid info'),
)
  • Related