ZeroSkeletonListView constructor
ZeroSkeletonListView({
- Key? key,
- SkeletonItem? item,
- SkeletonItem itemBuilder()?,
- int? itemCount,
- bool scrollable = false,
- EdgeInsets? padding = const EdgeInsets.symmetric(horizontal: 16),
- double? spacing = 8,
Implementation
ZeroSkeletonListView({
Key? key,
this.item,
this.itemBuilder,
this.itemCount,
this.scrollable = false,
this.padding = const EdgeInsets.symmetric(horizontal: 16),
this.spacing = 8,
}) : super(
key: key,
child: ListView.builder(
padding: padding,
physics: scrollable ? null : const NeverScrollableScrollPhysics(),
itemCount: itemCount,
itemBuilder: itemBuilder ??
(context, index) =>
item ??
ZeroSkeletonListTile(
hasSubtitle: true,
),
));