0

I have some code like the following:

return CustomScrollView(
  children: [
    SliverPadding(
      padding: EdgeInsets.only(left: 8),
      sliver: Container(/* */),
    ),
    SliverPadding(
      padding: const EdgeInsets.only(left: 8),
      sliver: Text(/* */),
    ),
    SliverList(
      delegate: SliverChildBuilderDelegate((context, idx) => /* */),
    ),
  ],
);

Is it more performant to convert my box widgets slivers (via SliverToBoxAdapter) and have them be children of the CustomScrollView or should I have two SliverLists in my CustomScrollView?

Benjamin
  • 5,783
  • 4
  • 25
  • 49

0 Answers0