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 SliverList
s in my CustomScrollView
?