Is it possible to add some non constrained widgets in between ListView.builder and ScrollView without using shrinkWrap: true? I need something like this:
SingleChildScrollView(
child: Padding(
padding: somePadding,
child: Center(
child: ConstrainedBox(
constraints: someConstaints,
child: Card(
ListView.builder(someBuilder);
),
),
),
),
);
And I can make it with shrinkWrap: true to get something like this:
image of that I'm trying to achieve
The list is inside a centered Card and both the card and the list are scrolled as the whole Scaffold body.
The problem is, the list is expected to be really large so shrinkWrap will have noticeable effect on performance. Is there any way to achieve the same without loosing lazy building of the list?