changes loading of pagination

This commit is contained in:
amirrezaghabeli
2025-08-19 08:46:13 +03:30
parent 1c6787f421
commit 082538f18d
@@ -154,15 +154,7 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'$currentPage/${widget.tenders.length}',
style: TextStyle(
fontSize: 14.0.sp(),
fontWeight: FontWeight.w500,
color: AppColors.grey,
),
),
if (viewModel.isLoadingMore)
viewModel.isLoadingMore ?
Padding(
padding: EdgeInsets.only(top: 4.0.h()),
child: SizedBox(
@@ -173,7 +165,17 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
color: AppColors.jellyBean,
),
),
):
Text(
'$currentPage/${widget.tenders.length}',
style: TextStyle(
fontSize: 14.0.sp(),
fontWeight: FontWeight.w500,
color: AppColors.grey,
),
),
],
);
}