Implement tender workflows and dashboard integration
continuous-integration/drone/push Build encountered an error

This commit is contained in:
AmirReza Jamali
2026-07-14 11:12:09 +03:30
parent ce170f9bc8
commit 72881df210
29 changed files with 1820 additions and 159 deletions
+18 -34
View File
@@ -127,13 +127,7 @@ class DesktopHomePage extends StatelessWidget {
backgroundColor: AppColors.primary20,
iconPath: AssetsManager.arrows,
title: HomeStrings.tenderSubmitted,
amount:
(homeViewModel
.tenderApprovalsStateResponse
?.data
?.submittedTenders ??
0)
.toString(),
amount: homeViewModel.submittedTendersCount.toString(),
textColor: AppColors.mainBlue,
enableTap: true,
@@ -152,7 +146,7 @@ class DesktopHomePage extends StatelessWidget {
backgroundColor: AppColors.primary10,
iconPath: AssetsManager.approve,
title: HomeStrings.approvedTenders,
amount: '0',
amount: homeViewModel.approvedTendersCount.toString(),
textColor: AppColors.jellyBean,
enableTap: true,
width: 178,
@@ -165,32 +159,22 @@ class DesktopHomePage extends StatelessWidget {
),
),
const SizedBox(width: 10),
TenderCard(
backgroundColor: AppColors.orange10,
iconPath: AssetsManager.shield,
title: HomeStrings.tenderValue,
amount: '0',
textColor: AppColors.orange,
enableTap: false,
width: 178,
height: 148,
onTap: () {},
),
const SizedBox(width: 10),
TenderCard(
backgroundColor: AppColors.grey10,
iconPath: AssetsManager.thumbLike,
title: HomeStrings.likedTenders,
amount: homeViewModel.userLikedTendersCount.toString(),
textColor: AppColors.grey50,
enableTap: true,
width: 178,
height: 148,
onTap: () {
const LikedTendersRouteData().push(context).then((value) {
homeViewModel.init();
});
},
Expanded(
child: TenderCard(
backgroundColor: AppColors.grey10,
iconPath: AssetsManager.thumbLike,
title: HomeStrings.likedTenders,
amount: homeViewModel.userLikedTendersCount.toString(),
textColor: AppColors.grey50,
enableTap: true,
width: 178,
height: 148,
onTap: () {
const LikedTendersRouteData().push(context).then((value) {
homeViewModel.init();
});
},
),
),
],
);