added logic for detail

This commit is contained in:
llsajjad
2025-08-09 19:26:56 +03:30
parent 83ca169059
commit d0afc23be1
18 changed files with 1051 additions and 150 deletions
@@ -4,9 +4,12 @@ import 'package:tm_app/core/constants/assets.dart';
import 'package:tm_app/core/constants/strings.dart';
import 'package:tm_app/core/theme/colors.dart';
import 'package:tm_app/core/utils/size_config.dart';
import 'package:tm_app/data/services/model/tender_detail_response/tender_detail_response_model.dart';
class TenderLocationSection extends StatelessWidget {
const TenderLocationSection({super.key});
final TenderDetailResponseModel detail;
const TenderLocationSection({super.key, required this.detail});
@override
Widget build(BuildContext context) {
@@ -18,7 +21,7 @@ class TenderLocationSection extends StatelessWidget {
SizedBox(
height: 45.0.h(),
child: Text(
AppStrings.tenderReferenceNumberLabel,
detail.locationTitle ?? '',
style: TextStyle(
color: AppColors.grey80,
fontWeight: FontWeight.w600,
@@ -35,7 +38,7 @@ class TenderLocationSection extends StatelessWidget {
),
SizedBox(width: 4.0.w()),
Text(
AppStrings.tenderLocationCountry,
detail.country ?? '',
style: TextStyle(
color: AppColors.grey70,
fontSize: 14.0.sp(),
@@ -44,7 +47,7 @@ class TenderLocationSection extends StatelessWidget {
),
SizedBox(width: 4.0.w()),
Image.asset(
AssetsManager.seFlag,
detail.flagAsset ?? AssetsManager.seFlag,
height: 20.0.h(),
width: 20.0.w(),
),
@@ -57,7 +60,7 @@ class TenderLocationSection extends StatelessWidget {
),
SizedBox(height: 8.0.h()),
Text(
AppStrings.locationDescription,
detail.locationDescription ?? '',
style: TextStyle(fontWeight: FontWeight.w400, fontSize: 14.0.sp()),
),
SizedBox(height: 16.0.h()),