fixed home loading

This commit is contained in:
amirrezaghabeli
2025-08-20 14:56:19 +03:30
parent dd99bd6b32
commit 8e95f31b57
2 changed files with 16 additions and 15 deletions
+8 -7
View File
@@ -32,7 +32,8 @@ class MobileHomePage extends StatelessWidget {
return Center(child: Text(homeViewModel.errorMessage!));
}
if (homeViewModel.homeResponse != null) {
if (homeViewModel.homeResponse != null &&
homeViewModel.tenderApprovalsStateResponse != null) {
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -116,12 +117,12 @@ class MobileHomePage extends StatelessWidget {
backgroundColor: AppColors.primary20,
iconPath: AssetsManager.arrows,
title: AppStrings.tenderSubmitted,
amount:'0',
// tenderApprovalsStateResponse
// .data!
// .approvalsBySubmission!
// .selfApply
// .toString(),
amount: '0',
// tenderApprovalsStateResponse
// .data!
// .approvalsBySubmission!
// .selfApply
// .toString(),
textColor: Color(0xFF0164FF),
enableTap: true,
onTap: () {