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,16 +154,8 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Text( viewModel.isLoadingMore ?
'$currentPage/${widget.tenders.length}', Padding(
style: TextStyle(
fontSize: 14.0.sp(),
fontWeight: FontWeight.w500,
color: AppColors.grey,
),
),
if (viewModel.isLoadingMore)
Padding(
padding: EdgeInsets.only(top: 4.0.h()), padding: EdgeInsets.only(top: 4.0.h()),
child: SizedBox( child: SizedBox(
width: 16.0.w(), width: 16.0.w(),
@@ -173,7 +165,17 @@ class _MainTendersSliderState extends State<MainTendersSlider> {
color: AppColors.jellyBean, color: AppColors.jellyBean,
), ),
), ),
):
Text(
'$currentPage/${widget.tenders.length}',
style: TextStyle(
fontSize: 14.0.sp(),
fontWeight: FontWeight.w500,
color: AppColors.grey,
), ),
),
], ],
); );
} }