unCommentted second card row in home
This commit is contained in:
@@ -31,6 +31,7 @@ class AppStrings {
|
|||||||
static const String approvedTenders = 'Approved tenders';
|
static const String approvedTenders = 'Approved tenders';
|
||||||
static const String tenderValue = 'Tender Value';
|
static const String tenderValue = 'Tender Value';
|
||||||
static const String thunderStatus = 'Thunder status';
|
static const String thunderStatus = 'Thunder status';
|
||||||
|
static const String likedTenders = 'Liked Tenders';
|
||||||
static const String yourTenders = 'Your tenders';
|
static const String yourTenders = 'Your tenders';
|
||||||
static const String recommendation = 'Recommendation';
|
static const String recommendation = 'Recommendation';
|
||||||
static const String welcome = 'Welcome';
|
static const String welcome = 'Welcome';
|
||||||
|
|||||||
@@ -174,30 +174,30 @@ class DesktopHomePage extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
// TenderCard(
|
TenderCard(
|
||||||
// backgroundColor: AppColors.orange10,
|
backgroundColor: AppColors.orange10,
|
||||||
// iconPath: 'assets/icons/shield.svg',
|
iconPath: 'assets/icons/shield.svg',
|
||||||
// title: AppStrings.tenderValue,
|
title: AppStrings.tenderValue,
|
||||||
// amount: homeResponse.tenderValue ?? '0',
|
amount: '3',
|
||||||
// textColor: Color(0xFFE5821E),
|
textColor: Color(0xFFE5821E),
|
||||||
// enableTap: true,
|
enableTap: true,
|
||||||
// width: 178,
|
width: 178,
|
||||||
// height: 148,
|
height: 148,
|
||||||
// onTap: () {},
|
onTap: () {},
|
||||||
// ),
|
),
|
||||||
// SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
// TenderCard(
|
TenderCard(
|
||||||
// backgroundColor: AppColors.grey10,
|
backgroundColor: AppColors.grey10,
|
||||||
// iconPath: 'assets/icons/edit.svg',
|
iconPath: 'assets/icons/edit.svg',
|
||||||
// title: AppStrings.thunderStatus,
|
title: AppStrings.likedTenders,
|
||||||
// amount: homeResponse.thunderStatus ?? '0',
|
amount: '2',
|
||||||
// textColor: Color(0xFF9E9E9E),
|
textColor: Color(0xFF9E9E9E),
|
||||||
// enableTap: false,
|
enableTap: false,
|
||||||
// width: 178,
|
width: 178,
|
||||||
// height: 148,
|
height: 148,
|
||||||
// onTap: () {},
|
onTap: () {},
|
||||||
// ),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import 'package:tm_app/core/constants/strings.dart';
|
|||||||
import 'package:tm_app/core/routes/app_routes.dart';
|
import 'package:tm_app/core/routes/app_routes.dart';
|
||||||
import 'package:tm_app/core/theme/colors.dart';
|
import 'package:tm_app/core/theme/colors.dart';
|
||||||
import 'package:tm_app/core/utils/size_config.dart';
|
import 'package:tm_app/core/utils/size_config.dart';
|
||||||
import 'package:tm_app/data/services/model/home/home_response/home_response_model.dart';
|
|
||||||
import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart';
|
import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart';
|
||||||
import 'package:tm_app/view_models/home_view_model.dart';
|
import 'package:tm_app/view_models/home_view_model.dart';
|
||||||
import 'package:tm_app/views/shared/tender_app_bar.dart';
|
import 'package:tm_app/views/shared/tender_app_bar.dart';
|
||||||
@@ -47,7 +46,7 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
homeViewModel.tenderApprovalsStateResponse!,
|
homeViewModel.tenderApprovalsStateResponse!,
|
||||||
),
|
),
|
||||||
SizedBox(height: 8.0.h()),
|
SizedBox(height: 8.0.h()),
|
||||||
// _secondTenderCardsRow(homeViewModel.homeResponse!),
|
_secondTenderCardsRow(),
|
||||||
SizedBox(height: 40.0.h()),
|
SizedBox(height: 40.0.h()),
|
||||||
_yourTenderText(homeViewModel),
|
_yourTenderText(homeViewModel),
|
||||||
_bottomListView(homeViewModel),
|
_bottomListView(homeViewModel),
|
||||||
@@ -147,7 +146,7 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
Widget _secondTenderCardsRow(HomeResponseModel homeResponse) {
|
Widget _secondTenderCardsRow() {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
|
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
|
||||||
child: Row(
|
child: Row(
|
||||||
@@ -157,7 +156,7 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
backgroundColor: AppColors.orange10,
|
backgroundColor: AppColors.orange10,
|
||||||
iconPath: AssetsManager.shield,
|
iconPath: AssetsManager.shield,
|
||||||
title: AppStrings.tenderValue,
|
title: AppStrings.tenderValue,
|
||||||
amount: homeResponse.tenderValue ?? '0',
|
amount: '3',
|
||||||
textColor: Color(0xFFE5821E),
|
textColor: Color(0xFFE5821E),
|
||||||
enableTap: true,
|
enableTap: true,
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
@@ -165,8 +164,8 @@ class MobileHomePage extends StatelessWidget {
|
|||||||
TenderCard(
|
TenderCard(
|
||||||
backgroundColor: AppColors.grey10,
|
backgroundColor: AppColors.grey10,
|
||||||
iconPath: AssetsManager.edit,
|
iconPath: AssetsManager.edit,
|
||||||
title: AppStrings.thunderStatus,
|
title: AppStrings.likedTenders,
|
||||||
amount: homeResponse.thunderStatus ?? '0',
|
amount: '2',
|
||||||
textColor: Color(0xFF9E9E9E),
|
textColor: Color(0xFF9E9E9E),
|
||||||
enableTap: false,
|
enableTap: false,
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:tm_app/core/constants/strings.dart';
|
|||||||
import 'package:tm_app/core/routes/app_routes.dart';
|
import 'package:tm_app/core/routes/app_routes.dart';
|
||||||
import 'package:tm_app/core/theme/colors.dart';
|
import 'package:tm_app/core/theme/colors.dart';
|
||||||
import 'package:tm_app/core/utils/size_config.dart';
|
import 'package:tm_app/core/utils/size_config.dart';
|
||||||
import 'package:tm_app/data/services/model/home/home_response/home_response_model.dart';
|
|
||||||
import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart';
|
import 'package:tm_app/data/services/model/tender_approvals_state_response/tender_approvals_state_response.dart';
|
||||||
import 'package:tm_app/view_models/home_view_model.dart';
|
import 'package:tm_app/view_models/home_view_model.dart';
|
||||||
import 'package:tm_app/views/shared/tablet_navigation_widget.dart';
|
import 'package:tm_app/views/shared/tablet_navigation_widget.dart';
|
||||||
@@ -102,7 +101,7 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
homeViewModel.tenderApprovalsStateResponse!,
|
homeViewModel.tenderApprovalsStateResponse!,
|
||||||
),
|
),
|
||||||
SizedBox(height: 8.0.h()),
|
SizedBox(height: 8.0.h()),
|
||||||
//_secondTenderCardsRow(homeViewModel.homeResponse!),
|
_secondTenderCardsRow(),
|
||||||
SizedBox(height: 32.0.h()),
|
SizedBox(height: 32.0.h()),
|
||||||
_yourTenderText(homeViewModel),
|
_yourTenderText(homeViewModel),
|
||||||
SizedBox(height: 8.0.h()),
|
SizedBox(height: 8.0.h()),
|
||||||
@@ -211,7 +210,7 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ignore: unused_element
|
// ignore: unused_element
|
||||||
Widget _secondTenderCardsRow(HomeResponseModel homeResponse) {
|
Widget _secondTenderCardsRow() {
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
@@ -220,7 +219,7 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
backgroundColor: AppColors.orange10,
|
backgroundColor: AppColors.orange10,
|
||||||
iconPath: 'assets/icons/shield.svg',
|
iconPath: 'assets/icons/shield.svg',
|
||||||
title: AppStrings.tenderValue,
|
title: AppStrings.tenderValue,
|
||||||
amount: homeResponse.tenderValue ?? '0',
|
amount: '3',
|
||||||
textColor: Color(0xFFE5821E),
|
textColor: Color(0xFFE5821E),
|
||||||
enableTap: true,
|
enableTap: true,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
@@ -233,8 +232,8 @@ class TabletHomePage extends StatelessWidget {
|
|||||||
child: TenderCard(
|
child: TenderCard(
|
||||||
backgroundColor: AppColors.grey10,
|
backgroundColor: AppColors.grey10,
|
||||||
iconPath: 'assets/icons/edit.svg',
|
iconPath: 'assets/icons/edit.svg',
|
||||||
title: AppStrings.thunderStatus,
|
title: AppStrings.likedTenders,
|
||||||
amount: homeResponse.thunderStatus ?? '0',
|
amount: '2',
|
||||||
textColor: Color(0xFF9E9E9E),
|
textColor: Color(0xFF9E9E9E),
|
||||||
enableTap: false,
|
enableTap: false,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user