This commit is contained in:
amirrezaghabeli
2025-08-18 10:19:05 +03:30
parent c6e77e5337
commit 4874153488
7 changed files with 62 additions and 33 deletions
+22 -18
View File
@@ -31,24 +31,28 @@ class MobileHomePage extends StatelessWidget {
if (homeViewModel.errorMessage != null) {
return Center(child: Text(homeViewModel.errorMessage!));
}
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 18.0.h()),
NotificationCard(),
SizedBox(height: 32.0.h()),
_progressBarsRow(homeViewModel.homeResponse!),
SizedBox(height: 32.0.h()),
_firstTenderCardsRow(context, homeViewModel.homeResponse!),
SizedBox(height: 8.0.h()),
_secondTenderCardsRow(homeViewModel.homeResponse!),
SizedBox(height: 40.0.h()),
_yourTenderText(),
_bottomListView(homeViewModel.recommendedTendersResponse!),
],
),
if (homeViewModel.homeResponse != null) {
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 18.0.h()),
NotificationCard(),
SizedBox(height: 32.0.h()),
_progressBarsRow(homeViewModel.homeResponse!),
SizedBox(height: 32.0.h()),
_firstTenderCardsRow(context, homeViewModel.homeResponse!),
SizedBox(height: 8.0.h()),
_secondTenderCardsRow(homeViewModel.homeResponse!),
SizedBox(height: 40.0.h()),
_yourTenderText(),
_bottomListView(homeViewModel.recommendedTendersResponse!),
],
),
);
}
return const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
);
},
),
+3 -2
View File
@@ -86,7 +86,7 @@ class TendersListItem extends StatelessWidget {
child: Text(
tender.description!,
textAlign: TextAlign.left,
maxLines: 6,
maxLines: 4,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 14.0.sp(),
@@ -95,7 +95,8 @@ class TendersListItem extends StatelessWidget {
),
),
),
SizedBox(height: 18.0.h()),
Spacer(),
// SizedBox(height: 18.0.h()),
TenderCardProgressBar(),
SizedBox(height: 15.0.h()),