Merge pull request 'changes loading of pagination' (#50) from pagination_loading into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/50
This commit is contained in:
a.ghabeli
2025-08-19 08:46:38 +03:30
@@ -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,
),
),
],
);
}