From efd75d2a2330e96ad2ddfdfe0cc32305d1176f51 Mon Sep 17 00:00:00 2001 From: llsajjad Date: Wed, 20 Aug 2025 14:27:21 +0330 Subject: [PATCH] Fixed status data in home --- lib/views/home/pages/d_home_page.dart | 17 ++++++++--------- lib/views/home/pages/m_home_page.dart | 16 ++++++++-------- lib/views/home/pages/t_home_page.dart | 16 ++++++++-------- lib/views/home/progress_bar_column.dart | 2 +- 4 files changed, 25 insertions(+), 26 deletions(-) diff --git a/lib/views/home/pages/d_home_page.dart b/lib/views/home/pages/d_home_page.dart index bbd1517..fee7e3c 100644 --- a/lib/views/home/pages/d_home_page.dart +++ b/lib/views/home/pages/d_home_page.dart @@ -70,7 +70,7 @@ class DesktopHomePage extends StatelessWidget { ProgressBarColumn( text: AppStrings.partnership, value: double.parse('$partnershipPercent'), - amount: partnership.toString(), + amount: double.parse('$partnershipPercent').toString(), circularProgressIndicatorWidth: 176, circularProgressIndicatorHeight: 176, ), @@ -78,8 +78,7 @@ class DesktopHomePage extends StatelessWidget { ProgressBarColumn( text: AppStrings.selfApply, value: double.parse(selfApplyPercent.toString()), - amount: selfApply.toString(), - circularProgressIndicatorWidth: 176, + amount: double.parse(selfApplyPercent.toString()).toString(), circularProgressIndicatorWidth: 176, circularProgressIndicatorHeight: 176, ), SizedBox(width: 106), @@ -105,12 +104,12 @@ class DesktopHomePage extends StatelessWidget { backgroundColor: AppColors.primary20, iconPath: 'assets/icons/arrows.svg', title: AppStrings.tenderSubmitted, - amount: - tenderApprovalsStateResponse - .data! - .approvalsBySubmission! - .selfApply - .toString(), + amount: '0', + // tenderApprovalsStateResponse + // .data! + // .approvalsBySubmission! + // .selfApply + // .toString(), textColor: Color(0xFF0164FF), enableTap: true, width: 178, diff --git a/lib/views/home/pages/m_home_page.dart b/lib/views/home/pages/m_home_page.dart index 0f17627..e67c5a3 100644 --- a/lib/views/home/pages/m_home_page.dart +++ b/lib/views/home/pages/m_home_page.dart @@ -83,13 +83,13 @@ class MobileHomePage extends StatelessWidget { ProgressBarColumn( text: AppStrings.partnership, value: double.parse('$partnershipPercent'), - amount: partnership.toString(), + amount: double.parse('$partnershipPercent').toString(), ), Spacer(), ProgressBarColumn( text: AppStrings.selfApply, value: double.parse(selfApplyPercent.toString()), - amount: selfApply.toString(), + amount: double.parse(selfApplyPercent.toString()).toString(), ), SizedBox(width: 20.0.w()), Spacer(), @@ -116,12 +116,12 @@ class MobileHomePage extends StatelessWidget { backgroundColor: AppColors.primary20, iconPath: AssetsManager.arrows, title: AppStrings.tenderSubmitted, - amount: - tenderApprovalsStateResponse - .data! - .approvalsBySubmission! - .selfApply - .toString(), + amount:'0', + // tenderApprovalsStateResponse + // .data! + // .approvalsBySubmission! + // .selfApply + // .toString(), textColor: Color(0xFF0164FF), enableTap: true, onTap: () { diff --git a/lib/views/home/pages/t_home_page.dart b/lib/views/home/pages/t_home_page.dart index 3ced1f6..fd9f3ff 100644 --- a/lib/views/home/pages/t_home_page.dart +++ b/lib/views/home/pages/t_home_page.dart @@ -80,7 +80,7 @@ class TabletHomePage extends StatelessWidget { ProgressBarColumn( text: AppStrings.partnership, value: double.parse('$partnershipPercent'), - amount: partnership.toString(), + amount: double.parse('$partnershipPercent').toString(), circularProgressIndicatorWidth: 176.0, circularProgressIndicatorHeight: 176.0, strokeWidth: 8.0, @@ -88,7 +88,7 @@ class TabletHomePage extends StatelessWidget { ProgressBarColumn( text: AppStrings.selfApply, value: double.parse(selfApplyPercent.toString()), - amount: selfApply.toString(), + amount: double.parse(selfApplyPercent.toString()).toString(), circularProgressIndicatorWidth: 176.0, circularProgressIndicatorHeight: 176.0, strokeWidth: 8.0, @@ -119,12 +119,12 @@ class TabletHomePage extends StatelessWidget { backgroundColor: AppColors.primary20, iconPath: 'assets/icons/arrows.svg', title: AppStrings.tenderSubmitted, - amount: - tenderApprovalsStateResponse - .data! - .approvalsBySubmission! - .selfApply - .toString(), + amount: '0', + // tenderApprovalsStateResponse + // .data! + // .approvalsBySubmission! + // .selfApply + // .toString(), textColor: Color(0xFF0164FF), enableTap: true, width: double.infinity, diff --git a/lib/views/home/progress_bar_column.dart b/lib/views/home/progress_bar_column.dart index 10ca443..74e0a4a 100644 --- a/lib/views/home/progress_bar_column.dart +++ b/lib/views/home/progress_bar_column.dart @@ -91,7 +91,7 @@ class _ProgressBarColumnState extends State Widget _centerText() { return Center( child: Text( - widget.amount, + '${widget.amount}%', style: TextStyle( fontSize: 24.0.sp(), fontWeight: FontWeight.bold,