Fix bottom padding top items list

This commit is contained in:
Juan Gilsanz Polo 2024-09-11 18:53:23 +02:00
parent 9eb200f5da
commit b223076dae

View file

@ -187,16 +187,19 @@ class _TopItemsScreenState extends State<TopItemsScreen> {
),
),
),
if (sortedValues.isNotEmpty) SliverList.builder(
itemCount: sortedValues.length,
itemBuilder: (context, index) => _Item(
data: sortedValues[index],
isClient: widget.isClient,
options: widget.options,
total: total,
withProgressBar: widget.withProgressBar,
onTapEntry: widget.onTapEntry,
buildValue: widget.buildValue,
if (sortedValues.isNotEmpty) SliverPadding(
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewPadding.bottom),
sliver: SliverList.builder(
itemCount: sortedValues.length,
itemBuilder: (context, index) => _Item(
data: sortedValues[index],
isClient: widget.isClient,
options: widget.options,
total: total,
withProgressBar: widget.withProgressBar,
onTapEntry: widget.onTapEntry,
buildValue: widget.buildValue,
),
),
),
],