From 925e178f162e4f4f64a034285de2292779443212 Mon Sep 17 00:00:00 2001 From: llsajjad Date: Wed, 27 Aug 2025 08:43:06 +0330 Subject: [PATCH] unCommentted second card row in home --- lib/core/constants/strings.dart | 1 + lib/views/home/pages/d_home_page.dart | 48 +++++++++++++-------------- lib/views/home/pages/m_home_page.dart | 11 +++--- lib/views/home/pages/t_home_page.dart | 11 +++--- 4 files changed, 35 insertions(+), 36 deletions(-) diff --git a/lib/core/constants/strings.dart b/lib/core/constants/strings.dart index 0c6e24c..21a8fa0 100644 --- a/lib/core/constants/strings.dart +++ b/lib/core/constants/strings.dart @@ -31,6 +31,7 @@ class AppStrings { static const String approvedTenders = 'Approved tenders'; static const String tenderValue = 'Tender Value'; static const String thunderStatus = 'Thunder status'; + static const String likedTenders = 'Liked Tenders'; static const String yourTenders = 'Your tenders'; static const String recommendation = 'Recommendation'; static const String welcome = 'Welcome'; diff --git a/lib/views/home/pages/d_home_page.dart b/lib/views/home/pages/d_home_page.dart index 11dbed3..652df87 100644 --- a/lib/views/home/pages/d_home_page.dart +++ b/lib/views/home/pages/d_home_page.dart @@ -174,30 +174,30 @@ class DesktopHomePage extends StatelessWidget { }, ), ), - // SizedBox(width: 10), - // TenderCard( - // backgroundColor: AppColors.orange10, - // iconPath: 'assets/icons/shield.svg', - // title: AppStrings.tenderValue, - // amount: homeResponse.tenderValue ?? '0', - // textColor: Color(0xFFE5821E), - // enableTap: true, - // width: 178, - // height: 148, - // onTap: () {}, - // ), - // SizedBox(width: 10), - // TenderCard( - // backgroundColor: AppColors.grey10, - // iconPath: 'assets/icons/edit.svg', - // title: AppStrings.thunderStatus, - // amount: homeResponse.thunderStatus ?? '0', - // textColor: Color(0xFF9E9E9E), - // enableTap: false, - // width: 178, - // height: 148, - // onTap: () {}, - // ), + SizedBox(width: 10), + TenderCard( + backgroundColor: AppColors.orange10, + iconPath: 'assets/icons/shield.svg', + title: AppStrings.tenderValue, + amount: '3', + textColor: Color(0xFFE5821E), + enableTap: true, + width: 178, + height: 148, + onTap: () {}, + ), + SizedBox(width: 10), + TenderCard( + backgroundColor: AppColors.grey10, + iconPath: 'assets/icons/edit.svg', + title: AppStrings.likedTenders, + amount: '2', + textColor: Color(0xFF9E9E9E), + enableTap: false, + width: 178, + height: 148, + onTap: () {}, + ), ], ); } diff --git a/lib/views/home/pages/m_home_page.dart b/lib/views/home/pages/m_home_page.dart index 03a3ac5..a28caf5 100644 --- a/lib/views/home/pages/m_home_page.dart +++ b/lib/views/home/pages/m_home_page.dart @@ -5,7 +5,6 @@ import 'package:tm_app/core/constants/strings.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/home/home_response/home_response_model.dart'; import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart'; import 'package:tm_app/view_models/home_view_model.dart'; import 'package:tm_app/views/shared/tender_app_bar.dart'; @@ -47,7 +46,7 @@ class MobileHomePage extends StatelessWidget { homeViewModel.tenderApprovalsStateResponse!, ), SizedBox(height: 8.0.h()), - // _secondTenderCardsRow(homeViewModel.homeResponse!), + _secondTenderCardsRow(), SizedBox(height: 40.0.h()), _yourTenderText(homeViewModel), _bottomListView(homeViewModel), @@ -147,7 +146,7 @@ class MobileHomePage extends StatelessWidget { } // ignore: unused_element - Widget _secondTenderCardsRow(HomeResponseModel homeResponse) { + Widget _secondTenderCardsRow() { return Padding( padding: EdgeInsets.symmetric(horizontal: 24.0.w()), child: Row( @@ -157,7 +156,7 @@ class MobileHomePage extends StatelessWidget { backgroundColor: AppColors.orange10, iconPath: AssetsManager.shield, title: AppStrings.tenderValue, - amount: homeResponse.tenderValue ?? '0', + amount: '3', textColor: Color(0xFFE5821E), enableTap: true, onTap: () {}, @@ -165,8 +164,8 @@ class MobileHomePage extends StatelessWidget { TenderCard( backgroundColor: AppColors.grey10, iconPath: AssetsManager.edit, - title: AppStrings.thunderStatus, - amount: homeResponse.thunderStatus ?? '0', + title: AppStrings.likedTenders, + amount: '2', textColor: Color(0xFF9E9E9E), enableTap: false, onTap: () {}, diff --git a/lib/views/home/pages/t_home_page.dart b/lib/views/home/pages/t_home_page.dart index d76a7dd..7623d73 100644 --- a/lib/views/home/pages/t_home_page.dart +++ b/lib/views/home/pages/t_home_page.dart @@ -6,7 +6,6 @@ import 'package:tm_app/core/constants/strings.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/home/home_response/home_response_model.dart'; import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart'; import 'package:tm_app/view_models/home_view_model.dart'; import 'package:tm_app/views/shared/tablet_navigation_widget.dart'; @@ -102,7 +101,7 @@ class TabletHomePage extends StatelessWidget { homeViewModel.tenderApprovalsStateResponse!, ), SizedBox(height: 8.0.h()), - //_secondTenderCardsRow(homeViewModel.homeResponse!), + _secondTenderCardsRow(), SizedBox(height: 32.0.h()), _yourTenderText(homeViewModel), SizedBox(height: 8.0.h()), @@ -211,7 +210,7 @@ class TabletHomePage extends StatelessWidget { } // ignore: unused_element - Widget _secondTenderCardsRow(HomeResponseModel homeResponse) { + Widget _secondTenderCardsRow() { return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ @@ -220,7 +219,7 @@ class TabletHomePage extends StatelessWidget { backgroundColor: AppColors.orange10, iconPath: 'assets/icons/shield.svg', title: AppStrings.tenderValue, - amount: homeResponse.tenderValue ?? '0', + amount: '3', textColor: Color(0xFFE5821E), enableTap: true, width: double.infinity, @@ -233,8 +232,8 @@ class TabletHomePage extends StatelessWidget { child: TenderCard( backgroundColor: AppColors.grey10, iconPath: 'assets/icons/edit.svg', - title: AppStrings.thunderStatus, - amount: homeResponse.thunderStatus ?? '0', + title: AppStrings.likedTenders, + amount: '2', textColor: Color(0xFF9E9E9E), enableTap: false, width: double.infinity,