contacts merge
This commit is contained in:
commit
f9a16ec99a
@ -1,27 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:uae_stat/domain/use_cases/language.dart';
|
||||
|
||||
import 'package:uae_stat/infrastructure/services/img_asset_paths/icons/enquiry_asset_icon_path.dart';
|
||||
|
||||
import 'package:uae_stat/presentation/routes/drawer_routes/custom_drawer_routes.dart';
|
||||
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
|
||||
class Contact extends StatefulWidget {
|
||||
const Contact({super.key});
|
||||
|
||||
|
||||
@override
|
||||
State<Contact> createState() => _ContactState();
|
||||
}
|
||||
|
||||
|
||||
class _ContactState extends State<Contact> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final double screenWidth = MediaQuery.of(context).size.width;
|
||||
|
||||
// final double screenHeight = MediaQuery.of(context).size.height;
|
||||
|
||||
|
||||
return BaseScaffold(
|
||||
body: Container(
|
||||
color: Colors.grey[200],
|
||||
@ -35,41 +30,13 @@ class _ContactState extends State<Contact> {
|
||||
title: 'DUBAI - EMIRATES TOWER -32ND FLOOR',
|
||||
titleAr: 'دبي - أبراج الإمارات - الطابق 32',
|
||||
details: [
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.building,
|
||||
'text': 'Office : Dubai - Emirates Tower -32nd Floor',
|
||||
'textAr': 'المقر الرئيسي : دبي - أبراج الإمارات - الطابق 32'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.phone,
|
||||
'text': 'Tel : 00971 46080000',
|
||||
'textAr': 'الهاتف : 0097146080000'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.fax,
|
||||
'text': 'Fax : 0097143273535',
|
||||
'textAr': 'فاكس : 0097143273535'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'P.O.Box : 127000 Dubai',
|
||||
'textAr': 'ص.ب: : 127000 دبي'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.at,
|
||||
'text': 'Email Address : info@fcsc.gov.ae',
|
||||
'textAr': 'البريد الإلكتروني : info@fcsc.gov.ae'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Latitude : 25.223926',
|
||||
'textAr': 'خط العرض : 25.223926'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Longitude : 55.350526',
|
||||
'textAr': 'خط الطول : 55.350526'
|
||||
},
|
||||
{'icon': EnquiryAssetIconPath.building, 'text': 'Office : Dubai - Emirates Tower -32nd Floor', 'textAr': 'المقر الرئيسي : دبي - أبراج الإمارات - الطابق 32'},
|
||||
{'icon': EnquiryAssetIconPath.phone, 'text': 'Tel : 00971 46080000', 'textAr': 'الهاتف : 0097146080000'},
|
||||
{'icon': EnquiryAssetIconPath.fax, 'text': 'Fax : 0097143273535', 'textAr': 'فاكس : 0097143273535'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'P.O.Box : 127000 Dubai', 'textAr': 'ص.ب: : 127000 دبي'},
|
||||
{'icon': EnquiryAssetIconPath.at, 'text': 'Email Address : info@fcsc.gov.ae', 'textAr': 'البريد الإلكتروني : info@fcsc.gov.ae'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Latitude : 25.223926', 'textAr': 'خط العرض : 25.223926'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Longitude : 55.350526', 'textAr': 'خط الطول : 55.350526'},
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
@ -78,41 +45,13 @@ class _ContactState extends State<Contact> {
|
||||
title: 'MEDIA SECTION',
|
||||
titleAr: 'قسم الاعلام',
|
||||
details: [
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.building,
|
||||
'text': 'Office : Media Section',
|
||||
'textAr': 'المقر الرئيسي : قسم الاعلام'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.phone,
|
||||
'text': 'Tel : 00971 46080000',
|
||||
'textAr': 'الهاتف : 0097146080000'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.fax,
|
||||
'text': 'Fax : 0097143273535',
|
||||
'textAr': 'فاكس : 0097143273535'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'P.O.Box : 127000 Dubai',
|
||||
'textAr': 'ص.ب: : 127000 دبي'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.at,
|
||||
'text': 'Email Address : GCO@fcsc.gov.ae',
|
||||
'textAr': 'البريد الإلكتروني : GCO@fcsc.gov.ae'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Latitude : 25.223926',
|
||||
'textAr': 'خط العرض : 25.223926'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Longitude : 55.350526',
|
||||
'textAr': 'خط الطول : 55.350526'
|
||||
},
|
||||
{'icon': EnquiryAssetIconPath.building, 'text': 'Office : Media Section', 'textAr': 'المقر الرئيسي : قسم الاعلام'},
|
||||
{'icon': EnquiryAssetIconPath.phone, 'text': 'Tel : 00971 46080000', 'textAr': 'الهاتف : 0097146080000'},
|
||||
{'icon': EnquiryAssetIconPath.fax, 'text': 'Fax : 0097143273535', 'textAr': 'فاكس : 0097143273535'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'P.O.Box : 127000 Dubai', 'textAr': 'ص.ب: : 127000 دبي'},
|
||||
{'icon': EnquiryAssetIconPath.at, 'text': 'Email Address : GCO@fcsc.gov.ae', 'textAr': 'البريد الإلكتروني : GCO@fcsc.gov.ae'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Latitude : 25.223926', 'textAr': 'خط العرض : 25.223926'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Longitude : 55.350526', 'textAr': 'خط الطول : 55.350526'},
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
@ -121,41 +60,13 @@ class _ContactState extends State<Contact> {
|
||||
title: 'SGDS',
|
||||
titleAr: 'أهداف التنمية المستدامة',
|
||||
details: [
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.building,
|
||||
'text': 'Office : SDGs',
|
||||
'textAr': 'المقر الرئيسي : أهداف التنمية المستدامة'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.phone,
|
||||
'text': 'Tel : 00971 46080000',
|
||||
'textAr': 'الهاتف : 0097146080000'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.fax,
|
||||
'text': 'Fax : 0097143273535',
|
||||
'textAr': 'فاكس : 0097143273535'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'P.O.Box : 127000 Dubai',
|
||||
'textAr': 'ص.ب: : 127000 دبي'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.at,
|
||||
'text': 'Email Address : sdgs@fcsc.gov.ae',
|
||||
'textAr': 'البريد الإلكتروني : sdgs@fcsc.gov.ae'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Latitude : 25.223926',
|
||||
'textAr': 'خط العرض : 25.223926'
|
||||
},
|
||||
{
|
||||
'icon': EnquiryAssetIconPath.map,
|
||||
'text': 'Longitude : 55.350526',
|
||||
'textAr': 'خط الطول : 55.350526'
|
||||
},
|
||||
{'icon': EnquiryAssetIconPath.building, 'text': 'Office : SDGs', 'textAr': 'المقر الرئيسي : أهداف التنمية المستدامة'},
|
||||
{'icon': EnquiryAssetIconPath.phone, 'text': 'Tel : 00971 46080000', 'textAr': 'الهاتف : 0097146080000'},
|
||||
{'icon': EnquiryAssetIconPath.fax, 'text': 'Fax : 0097143273535', 'textAr': 'فاكس : 0097143273535'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'P.O.Box : 127000 Dubai', 'textAr': 'ص.ب: : 127000 دبي'},
|
||||
{'icon': EnquiryAssetIconPath.at, 'text': 'Email Address : sdgs@fcsc.gov.ae', 'textAr': 'البريد الإلكتروني : sdgs@fcsc.gov.ae'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Latitude : 25.223926', 'textAr': 'خط العرض : 25.223926'},
|
||||
{'icon': EnquiryAssetIconPath.map, 'text': 'Longitude : 55.350526', 'textAr': 'خط الطول : 55.350526'},
|
||||
],
|
||||
),
|
||||
],
|
||||
@ -165,11 +76,8 @@ class _ContactState extends State<Contact> {
|
||||
title: Text(context.translate('Contact Us', 'اتصل بنا')),
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildContactCard(BuildContext context,
|
||||
{required String title,
|
||||
required String titleAr,
|
||||
required List<Map<String, String>> details}) {
|
||||
|
||||
Widget buildContactCard(BuildContext context, {required String title, required String titleAr, required List<Map<String, String>> details}) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 12),
|
||||
decoration: BoxDecoration(
|
||||
@ -195,13 +103,12 @@ class _ContactState extends State<Contact> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
...details.map((item) => buildTextRow(item['icon']!,
|
||||
context.translate(item['text']!, item['textAr']!))),
|
||||
...details.map((item) => buildTextRow(item['icon']!, context.translate(item['text']!, item['textAr']!))),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Widget buildTextRow(String iconName, String text) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
||||
@ -227,4 +134,4 @@ class _ContactState extends State<Contact> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user