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

Issue

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.

Solution

try to use SliverToBoxAdapter between SliverList:

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

Answered By – Jim

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.