Fixed your tender and recommendedTenders in home

This commit is contained in:
llsajjad
2025-08-20 10:35:36 +03:30
parent 4b0dc4cedf
commit 45a2f854a4
5 changed files with 64 additions and 5 deletions
+5 -3
View File
@@ -30,6 +30,7 @@ class MobileHomePage extends StatelessWidget {
if (homeViewModel.errorMessage != null) {
return Center(child: Text(homeViewModel.errorMessage!));
}
if (homeViewModel.homeResponse != null) {
return SingleChildScrollView(
child: Column(
@@ -44,7 +45,7 @@ class MobileHomePage extends StatelessWidget {
SizedBox(height: 8.0.h()),
_secondTenderCardsRow(homeViewModel.homeResponse!),
SizedBox(height: 40.0.h()),
_yourTenderText(),
_yourTenderText(homeViewModel),
_bottomListView(homeViewModel),
],
),
@@ -149,11 +150,12 @@ class MobileHomePage extends StatelessWidget {
);
}
Widget _yourTenderText() {
Widget _yourTenderText(HomeViewModel homeViewModel) {
final isYourTenders = homeViewModel.data?.data?.isNotEmpty ?? false;
return Padding(
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
child: Text(
AppStrings.recommendation,
isYourTenders ? AppStrings.yourTenders : AppStrings.recommendedTenders,
style: TextStyle(
fontSize: 18.0.sp(),
fontWeight: FontWeight.w700,