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
+4 -24
View File
@@ -4,7 +4,6 @@ import 'package:provider/provider.dart';
import 'package:tm_app/core/routes/app_routes.dart';
import 'package:tm_app/core/theme/colors.dart';
import 'package:tm_app/core/utils/size_config.dart';
import 'package:tm_app/data/services/model/tender_approvals_stats_response/tender_approvals_stats_response.dart';
import 'package:tm_app/view_models/home_view_model.dart';
import 'package:tm_app/views/shared/tablet_navigation_widget.dart';
@@ -59,10 +58,7 @@ class TabletHomePage extends StatelessWidget {
SizedBox(height: 40.0.h()),
_progressBarsRow(homeViewModel),
SizedBox(height: 32.0.h()),
_firstTenderCardsRow(
context,
homeViewModel.tenderApprovalsStateResponse!,
),
_firstTenderCardsRow(context, homeViewModel),
SizedBox(height: 8.0.h()),
_secondTenderCardsRow(homeViewModel, context),
SizedBox(height: 32.0.h()),
@@ -113,7 +109,7 @@ class TabletHomePage extends StatelessWidget {
Widget _firstTenderCardsRow(
BuildContext context,
TenderApprovalsStatsResponse tenderApprovalsStateResponse,
HomeViewModel homeViewModel,
) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -123,9 +119,7 @@ class TabletHomePage extends StatelessWidget {
backgroundColor: AppColors.primary20,
iconPath: AssetsManager.arrows,
title: HomeStrings.tenderSubmitted,
amount:
(tenderApprovalsStateResponse.data?.submittedTenders ?? 0)
.toString(),
amount: homeViewModel.submittedTendersCount.toString(),
textColor: AppColors.mainBlue,
enableTap: true,
@@ -144,7 +138,7 @@ class TabletHomePage extends StatelessWidget {
backgroundColor: AppColors.primary10,
iconPath: AssetsManager.approve,
title: HomeStrings.approvedTenders,
amount: '0',
amount: homeViewModel.approvedTendersCount.toString(),
textColor: AppColors.jellyBean,
enableTap: true,
width: double.infinity,
@@ -167,20 +161,6 @@ class TabletHomePage extends StatelessWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: TenderCard(
backgroundColor: AppColors.orange10,
iconPath: AssetsManager.shield,
title: HomeStrings.tenderValue,
amount: '0',
textColor: AppColors.orange,
enableTap: false,
width: double.infinity,
height: 148,
onTap: () {},
),
),
const SizedBox(width: 16.0),
Expanded(
child: TenderCard(
backgroundColor: AppColors.grey10,