Closed arnab closed 1 year ago
I was able to work around this by using a standard ListView
(not a Sliver
) and wrapping that with Box constraints:
_skeletonedLoadingList(BuildContext ctx) => Skeletonizer(
enabled: true,
child: SizedBox(
height: 500,
child: ListView.separated(
itemCount: 7,
itemBuilder: (context, index) {
return Card(
child: ListTile(
title: Text('Item number $index as title'),
subtitle: const Text('Subtitle here'),
trailing: const Icon(Icons.ac_unit),
),
);
},
separatorBuilder: (ctx, i) =>
const Divider(thickness: 0.8, height: 2),
),
),
);
Hey @arnab Thanks for reporting, I totally missed this use-case as I tested on CustomScrollView
as a whole.
Just added SliverSkeletonizer
and Skeletonizer.sliver
( same thing ) to be used with sliver widgets in version 0.2.0.
This is a super cool plugin! Thank you!
I am trying to use this within a
CustomScrollView
that usually rendersSliverList
andSliverGrid
s.During loading, when I try to use a fake
SliverList
:... I get this error:
Is it possible to use this with
Sliver
widgets?