Fixed status data in home
This commit is contained in:
@@ -70,7 +70,7 @@ class DesktopHomePage extends StatelessWidget {
|
|||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.partnership,
|
text: AppStrings.partnership,
|
||||||
value: double.parse('$partnershipPercent'),
|
value: double.parse('$partnershipPercent'),
|
||||||
amount: partnership.toString(),
|
amount: double.parse('$partnershipPercent').toString(),
|
||||||
circularProgressIndicatorWidth: 176,
|
circularProgressIndicatorWidth: 176,
|
||||||
circularProgressIndicatorHeight: 176,
|
circularProgressIndicatorHeight: 176,
|
||||||
),
|
),
|
||||||
@@ -78,8 +78,7 @@ class DesktopHomePage extends StatelessWidget {
|
|||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.selfApply,
|
text: AppStrings.selfApply,
|
||||||
value: double.parse(selfApplyPercent.toString()),
|
value: double.parse(selfApplyPercent.toString()),
|
||||||
amount: selfApply.toString(),
|
amount: double.parse(selfApplyPercent.toString()).toString(), circularProgressIndicatorWidth: 176,
|
||||||
circularProgressIndicatorWidth: 176,
|
|
||||||
circularProgressIndicatorHeight: 176,
|
circularProgressIndicatorHeight: 176,
|
||||||
),
|
),
|
||||||
SizedBox(width: 106),
|
SizedBox(width: 106),
|
||||||
@@ -105,12 +104,12 @@ class DesktopHomePage extends StatelessWidget {
|
|||||||
backgroundColor: AppColors.primary20,
|
backgroundColor: AppColors.primary20,
|
||||||
iconPath: 'assets/icons/arrows.svg',
|
iconPath: 'assets/icons/arrows.svg',
|
||||||
title: AppStrings.tenderSubmitted,
|
title: AppStrings.tenderSubmitted,
|
||||||
amount:
|
amount: '0',
|
||||||
tenderApprovalsStateResponse
|
// tenderApprovalsStateResponse
|
||||||
.data!
|
// .data!
|
||||||
.approvalsBySubmission!
|
// .approvalsBySubmission!
|
||||||
.selfApply
|
// .selfApply
|
||||||
.toString(),
|
// .toString(),
|
||||||
textColor: Color(0xFF0164FF),
|
textColor: Color(0xFF0164FF),
|
||||||
enableTap: true,
|
enableTap: true,
|
||||||
width: 178,
|
width: 178,
|
||||||
|
|||||||
@@ -83,13 +83,13 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.partnership,
|
text: AppStrings.partnership,
|
||||||
value: double.parse('$partnershipPercent'),
|
value: double.parse('$partnershipPercent'),
|
||||||
amount: partnership.toString(),
|
amount: double.parse('$partnershipPercent').toString(),
|
||||||
),
|
),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.selfApply,
|
text: AppStrings.selfApply,
|
||||||
value: double.parse(selfApplyPercent.toString()),
|
value: double.parse(selfApplyPercent.toString()),
|
||||||
amount: selfApply.toString(),
|
amount: double.parse(selfApplyPercent.toString()).toString(),
|
||||||
),
|
),
|
||||||
SizedBox(width: 20.0.w()),
|
SizedBox(width: 20.0.w()),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
@@ -116,12 +116,12 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
backgroundColor: AppColors.primary20,
|
backgroundColor: AppColors.primary20,
|
||||||
iconPath: AssetsManager.arrows,
|
iconPath: AssetsManager.arrows,
|
||||||
title: AppStrings.tenderSubmitted,
|
title: AppStrings.tenderSubmitted,
|
||||||
amount:
|
amount:'0',
|
||||||
tenderApprovalsStateResponse
|
// tenderApprovalsStateResponse
|
||||||
.data!
|
// .data!
|
||||||
.approvalsBySubmission!
|
// .approvalsBySubmission!
|
||||||
.selfApply
|
// .selfApply
|
||||||
.toString(),
|
// .toString(),
|
||||||
textColor: Color(0xFF0164FF),
|
textColor: Color(0xFF0164FF),
|
||||||
enableTap: true,
|
enableTap: true,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.partnership,
|
text: AppStrings.partnership,
|
||||||
value: double.parse('$partnershipPercent'),
|
value: double.parse('$partnershipPercent'),
|
||||||
amount: partnership.toString(),
|
amount: double.parse('$partnershipPercent').toString(),
|
||||||
circularProgressIndicatorWidth: 176.0,
|
circularProgressIndicatorWidth: 176.0,
|
||||||
circularProgressIndicatorHeight: 176.0,
|
circularProgressIndicatorHeight: 176.0,
|
||||||
strokeWidth: 8.0,
|
strokeWidth: 8.0,
|
||||||
@@ -88,7 +88,7 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
ProgressBarColumn(
|
ProgressBarColumn(
|
||||||
text: AppStrings.selfApply,
|
text: AppStrings.selfApply,
|
||||||
value: double.parse(selfApplyPercent.toString()),
|
value: double.parse(selfApplyPercent.toString()),
|
||||||
amount: selfApply.toString(),
|
amount: double.parse(selfApplyPercent.toString()).toString(),
|
||||||
circularProgressIndicatorWidth: 176.0,
|
circularProgressIndicatorWidth: 176.0,
|
||||||
circularProgressIndicatorHeight: 176.0,
|
circularProgressIndicatorHeight: 176.0,
|
||||||
strokeWidth: 8.0,
|
strokeWidth: 8.0,
|
||||||
@@ -119,12 +119,12 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
backgroundColor: AppColors.primary20,
|
backgroundColor: AppColors.primary20,
|
||||||
iconPath: 'assets/icons/arrows.svg',
|
iconPath: 'assets/icons/arrows.svg',
|
||||||
title: AppStrings.tenderSubmitted,
|
title: AppStrings.tenderSubmitted,
|
||||||
amount:
|
amount: '0',
|
||||||
tenderApprovalsStateResponse
|
// tenderApprovalsStateResponse
|
||||||
.data!
|
// .data!
|
||||||
.approvalsBySubmission!
|
// .approvalsBySubmission!
|
||||||
.selfApply
|
// .selfApply
|
||||||
.toString(),
|
// .toString(),
|
||||||
textColor: Color(0xFF0164FF),
|
textColor: Color(0xFF0164FF),
|
||||||
enableTap: true,
|
enableTap: true,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class _ProgressBarColumnState extends State<ProgressBarColumn>
|
|||||||
Widget _centerText() {
|
Widget _centerText() {
|
||||||
return Center(
|
return Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
widget.amount,
|
'${widget.amount}%',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 24.0.sp(),
|
fontSize: 24.0.sp(),
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
Reference in New Issue
Block a user