Fixed your tender and recommendedTenders in home
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user