import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; 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 { final TenderDetailResponseModel detail; const TenderLocationSection({super.key, required this.detail}); @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.symmetric(vertical: 0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox( height: 45.0.h(), child: Text( detail.locationTitle ?? '', style: TextStyle( color: AppColors.grey80, fontWeight: FontWeight.w600, fontSize: 16.0.sp(), ), ), ), Row( children: [ SvgPicture.asset( AssetsManager.location, height: 20.0.h(), width: 20.0.w(), ), SizedBox(width: 4.0.w()), Text( detail.country ?? '', style: TextStyle( color: AppColors.grey70, fontSize: 14.0.sp(), fontWeight: FontWeight.w400, ), ), SizedBox(width: 4.0.w()), Image.asset( detail.flagAsset ?? AssetsManager.seFlag, height: 20.0.h(), width: 20.0.w(), ), ], ), SizedBox(height: 8.0.h()), Text( AppStrings.tenderLocationLabel, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16.0.sp()), ), SizedBox(height: 8.0.h()), Text( detail.locationDescription ?? '', style: TextStyle(fontWeight: FontWeight.w400, fontSize: 14.0.sp()), ), SizedBox(height: 16.0.h()), ], ), ); } }