Contact page created

This commit is contained in:
Kalonkarthik 2025-02-28 18:04:45 +05:30
parent de820662f7
commit bbae4b5789
10 changed files with 194 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2033_12443)">
<path d="M13.7881 8.13281C13.7686 8.62109 13.6953 9.10449 13.5684 9.58301C13.4463 10.0566 13.2583 10.4888 13.0044 10.8794C12.7554 11.2651 12.4355 11.5752 12.0449 11.8096C11.6543 12.0391 11.1831 12.1538 10.6313 12.1538C10.3091 12.1538 10.021 12.0977 9.76709 11.9854C9.51318 11.873 9.30078 11.7119 9.12988 11.502C8.95898 11.2871 8.83447 11.0308 8.75635 10.7329C8.67822 10.4302 8.65137 10.0933 8.67578 9.72217L9.04932 5.54004H10.4263L10.0601 9.72217C10.0308 10.0005 10.0356 10.2275 10.0747 10.4033C10.1138 10.5791 10.1748 10.7158 10.2578 10.8135C10.3408 10.9062 10.436 10.9722 10.5435 11.0112C10.6558 11.0503 10.7656 11.0698 10.873 11.0698C11.1221 11.0698 11.3467 10.9966 11.5469 10.8501C11.752 10.6987 11.9277 10.4912 12.0742 10.2275C12.2207 9.96387 12.3354 9.65869 12.4185 9.31201C12.5015 8.96045 12.5503 8.58203 12.5649 8.17676C12.5942 7.50781 12.5601 6.89014 12.4624 6.32373C12.3696 5.75732 12.2085 5.25195 11.979 4.80762C11.7495 4.36328 11.4517 3.9873 11.0854 3.67969C10.7192 3.36719 10.2847 3.12793 9.78174 2.96191C9.27881 2.7959 8.7002 2.71289 8.0459 2.71289C7.44531 2.71289 6.89111 2.80811 6.3833 2.99854C5.87549 3.18408 5.41895 3.4502 5.01367 3.79688C4.61328 4.14355 4.26904 4.55859 3.98096 5.04199C3.69287 5.52539 3.46582 6.06494 3.2998 6.66064C3.13867 7.25635 3.04346 7.89355 3.01416 8.57227C2.97998 9.29004 3.0166 9.94434 3.12402 10.5352C3.23633 11.1211 3.41455 11.6387 3.65869 12.0879C3.90771 12.5371 4.22021 12.9155 4.59619 13.2231C4.97217 13.5308 5.40918 13.7627 5.90723 13.9189C6.40527 14.0752 6.95703 14.1533 7.5625 14.1533C7.9873 14.1533 8.41943 14.1045 8.85889 14.0068C9.30322 13.9092 9.67676 13.7847 9.97949 13.6333L10.2578 14.666C9.91602 14.8857 9.48877 15.0493 8.97607 15.1567C8.46826 15.2642 7.9873 15.3179 7.5332 15.3179C6.7666 15.3179 6.06592 15.2227 5.43115 15.0322C4.80127 14.8418 4.24463 14.5586 3.76123 14.1826C3.27783 13.8066 2.875 13.3477 2.55273 12.8057C2.23047 12.2637 1.99365 11.6387 1.84229 10.9307C1.69092 10.2227 1.63232 9.43652 1.6665 8.57227C1.70068 7.77148 1.82275 7.01953 2.03271 6.31641C2.24268 5.6084 2.5332 4.96631 2.9043 4.39014C3.27539 3.81396 3.71729 3.31836 4.22998 2.90332C4.74756 2.4834 5.32861 2.16113 5.97314 1.93652C6.61768 1.71191 7.31836 1.59961 8.0752 1.59961C8.83691 1.59961 9.52783 1.69971 10.1479 1.8999C10.7681 2.1001 11.3125 2.38818 11.7812 2.76416C12.25 3.14014 12.6382 3.59668 12.9458 4.13379C13.2534 4.6709 13.478 5.27637 13.6196 5.9502C13.7612 6.61914 13.8174 7.34668 13.7881 8.13281ZM6.36865 8.87256C6.33936 9.19482 6.33936 9.48535 6.36865 9.74414C6.39795 9.99805 6.4541 10.2104 6.53711 10.3813C6.625 10.5522 6.73975 10.6841 6.88135 10.7769C7.02295 10.8647 7.18896 10.9087 7.37939 10.9087C7.4917 10.9087 7.61377 10.8818 7.74561 10.8281C7.87744 10.7695 8.00684 10.6768 8.13379 10.5498C8.26562 10.418 8.39014 10.2422 8.50732 10.0225C8.62939 9.79785 8.73193 9.51709 8.81494 9.18018L9.40088 9.86865C9.28857 10.2446 9.14697 10.5742 8.97607 10.8574C8.81006 11.1406 8.61963 11.3774 8.40479 11.5679C8.18994 11.7583 7.95801 11.9023 7.70898 12C7.45996 12.0928 7.19873 12.1392 6.92529 12.1392C6.56885 12.1392 6.25146 12.061 5.97314 11.9048C5.69482 11.7485 5.46533 11.5288 5.28467 11.2456C5.104 10.9575 4.97461 10.6133 4.89648 10.2129C4.81836 9.8125 4.80371 9.36572 4.85254 8.87256C4.90625 8.36963 5.00146 7.90576 5.13818 7.48096C5.27979 7.05127 5.45557 6.66797 5.66553 6.33105C5.87549 5.99414 6.1123 5.7085 6.37598 5.47412C6.64453 5.23486 6.93262 5.0542 7.24023 4.93213C7.55273 4.81006 7.87744 4.74902 8.21436 4.74902C8.771 4.74902 9.20801 4.82959 9.52539 4.99072C9.84277 5.14697 10.1431 5.33008 10.4263 5.54004L9.7085 6.48486C9.56689 6.35303 9.38135 6.22852 9.15186 6.11133C8.92725 5.98926 8.65869 5.92822 8.34619 5.92822C8.06299 5.92822 7.80908 5.9917 7.58447 6.11865C7.36475 6.24561 7.17188 6.43359 7.00586 6.68262C6.83984 6.93164 6.70312 7.23926 6.5957 7.60547C6.48828 7.9668 6.4126 8.38916 6.36865 8.87256Z" fill="#878787"/>
</g>
<defs>
<clipPath id="clip0_2033_12443">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.6667 2.00033V14.0003H8.66667V11.667H7.33333V14.0003H3.33333V2.00033H12.6667ZM10 4.66699H11.3333V3.33366H10V4.66699ZM7.33333 4.66699H8.66667V3.33366H7.33333V4.66699ZM4.66667 4.66699H6V3.33366H4.66667V4.66699ZM10 7.33366H11.3333V6.00033H10V7.33366ZM7.33333 7.33366H8.66667V6.00033H7.33333V7.33366ZM4.66667 7.33366H6V6.00033H4.66667V7.33366ZM10 10.0003H11.3333V8.66699H10V10.0003ZM7.33333 10.0003H8.66667V8.66699H7.33333V10.0003ZM4.66667 10.0003H6V8.66699H4.66667V10.0003ZM10 12.667H11.3333V11.3337H10V12.667ZM4.66667 12.667H6V11.3337H4.66667V12.667ZM14 0.666992H2V15.3337H14V0.666992Z" fill="#878787"/>
</svg>

After

Width:  |  Height:  |  Size: 717 B

View File

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.02552 12.9998V6.33314H5.53818V3.23047H11.5382V6.33314H13.6915V12.9998H5.02552ZM1.92285 13.6665H4.51218V5.66647H1.92285V13.6665ZM6.20485 6.33314H10.8715V3.89714H6.20485V6.33314ZM6.02485 11.3331H8.69152V7.9998H6.02485V11.3331ZM9.35818 9.33314H10.6915V7.9998H9.35818V9.33314ZM11.2302 9.33314H12.5635V7.9998H11.2302V9.33314ZM9.35818 11.3331H10.6915V9.9998H9.35818V11.3331ZM11.2302 11.3331H12.5635V9.9998H11.2302V11.3331Z" fill="#878787"/>
</svg>

After

Width:  |  Height:  |  Size: 550 B

View File

@ -0,0 +1,10 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2033_12439)">
<path d="M4.57143 0C4.64881 0 4.71577 0.0282738 4.77232 0.0848214C4.82887 0.141369 4.85714 0.208333 4.85714 0.285714V13.4286C4.85714 13.5476 4.80655 13.631 4.70536 13.6786L0.419643 15.9643C0.377976 15.9881 0.333333 16 0.285714 16C0.208333 16 0.141369 15.9717 0.0848214 15.9152C0.0282738 15.8586 0 15.7917 0 15.7143V2.57143C0 2.45238 0.0505952 2.36905 0.151786 2.32143L4.4375 0.0357143C4.47917 0.0119048 4.52381 0 4.57143 0ZM15.7143 0C15.7917 0 15.8586 0.0282738 15.9152 0.0848214C15.9717 0.141369 16 0.208333 16 0.285714V13.4286C16 13.5476 15.9494 13.631 15.8482 13.6786L11.5625 15.9643C11.5208 15.9881 11.4762 16 11.4286 16C11.3512 16 11.2842 15.9717 11.2277 15.9152C11.1711 15.8586 11.1429 15.7917 11.1429 15.7143V2.57143C11.1429 2.45238 11.1935 2.36905 11.2946 2.32143L15.5804 0.0357143C15.622 0.0119048 15.6667 0 15.7143 0ZM5.71429 0C5.76191 0 5.80357 0.00892857 5.83929 0.0267857L10.4107 2.3125C10.5179 2.37202 10.5714 2.45833 10.5714 2.57143V15.7143C10.5714 15.7917 10.5432 15.8586 10.4866 15.9152C10.4301 15.9717 10.3631 16 10.2857 16C10.2381 16 10.1964 15.9911 10.1607 15.9732L5.58929 13.6875C5.48214 13.628 5.42857 13.5417 5.42857 13.4286V0.285714C5.42857 0.208333 5.45685 0.141369 5.51339 0.0848214C5.56994 0.0282738 5.63691 0 5.71429 0Z" fill="#878787"/>
</g>
<defs>
<clipPath id="clip0_2033_12439">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 3C1 2.46957 1.21071 1.96086 1.58579 1.58579C1.96086 1.21071 2.46957 1 3 1H3.91467C4.488 1 4.988 1.39067 5.12733 1.94667L5.864 4.89533C5.92325 5.13401 5.91098 5.38484 5.82871 5.61659C5.74644 5.84834 5.59781 6.05077 5.40133 6.19867L4.53933 6.84533C4.44933 6.91267 4.43 7.01133 4.45533 7.08C4.83178 8.10312 5.426 9.03226 6.19687 9.80313C6.96774 10.574 7.89688 11.1682 8.92 11.5447C8.98867 11.57 9.08667 11.5507 9.15467 11.4607L9.80133 10.5987C9.94923 10.4022 10.1517 10.2536 10.3834 10.1713C10.6152 10.089 10.866 10.0767 11.1047 10.136L14.0533 10.8727C14.6093 11.012 15 11.512 15 12.086V13C15 13.5304 14.7893 14.0391 14.4142 14.4142C14.0391 14.7893 13.5304 15 13 15H11.5C5.70133 15 1 10.2987 1 4.5V3Z" fill="#878787"/>
</svg>

After

Width:  |  Height:  |  Size: 871 B

View File

@ -306,6 +306,7 @@ import 'package:uae_stat/presentation/Screens/charts/chart.dart';
import 'package:uae_stat/presentation/Screens/charts/screens/chart_screen.dart';
import 'package:uae_stat/presentation/Screens/demo_home2.dart';
import 'package:uae_stat/presentation/Screens/online_offline_verification/internet_check.dart';
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/contactUs.dart';
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/notification/notification.dart';
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/AboutTheApp/AboutFCSC.dart';
import 'package:uae_stat/presentation/routes/drawer_routes/Drawer%20Items/user_guide/AboutTheApp/getStarted.dart';
@ -631,5 +632,10 @@ final GoRouter router = GoRouter(
path: '/marriages',
builder: (context, state) => Marriages(),
),
GoRoute(
path: '/contact',
builder: (context, state) => Contact(),
),
],
);

View File

@ -0,0 +1,8 @@
abstract class EnquiryAssetIconPath {
static const _basePath = 'assets/icons/enquiry';
static const at = '$_basePath/at.svg';
static const building = '$_basePath/building.svg';
static const fax = '$_basePath/fax.svg';
static const map = '$_basePath/map.svg';
static const phone = '$_basePath/phone.svg';
}

View File

@ -0,0 +1,145 @@
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],
width: screenWidth,
padding: EdgeInsets.all(16.0),
child: SingleChildScrollView(
child: Column(
children: [
Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(4.0), // Slight curve
),
padding: EdgeInsets.all(7.0),
height: screenHeight*0.35,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(context.translate('DUBAI - EMIRATES TOWER -32ND FLOOR','دبي - أبراج الإمارات - الطابق 32'),
style: TextStyle(
color: Color(0xFF265E84),
fontSize: 20,
fontFamily: 'Roboto',
fontWeight: FontWeight.w500,
),
),
buildTextRow(EnquiryAssetIconPath.building,context.translate('Office : Dubai - Emirates Tower -32nd Floor','المقر الرئيسي : دبي - أبراج الإمارات - الطابق 32')),
buildTextRow(EnquiryAssetIconPath.phone,context.translate('Tel : 00971 46080000','الهاتف : 0097146080000'),),
buildTextRow(EnquiryAssetIconPath.fax, context.translate('Fax : 0097143273535','فاكس : 0097143273535')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('P.O.Box : 127000 Dubai','ص.ب: : 127000 دبي')),
buildTextRow(EnquiryAssetIconPath.at, context.translate('Email Address : info@fcsc.gov.ae','البريد الإلكتروني : info@fcsc.gov.ae')),
buildTextRow(EnquiryAssetIconPath.map,context.translate( 'Latitude : 25.223926','خط العرض : 25.223926')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('Longitude : 55.350526','خط الطول : 55.350526')),
],
),
),
SizedBox(height: 10,),
Container(
padding: EdgeInsets.all(7.0),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(4.0), // Slight curve
),
height: screenHeight*0.34,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(context.translate('MEDIA SECTION','قسم الاعلام'),
style: TextStyle(
color: Color(0xFF265E84),
fontSize: 20,
fontFamily: 'Roboto',
fontWeight: FontWeight.w500,
),
),
buildTextRow(EnquiryAssetIconPath.building,context.translate('Office : Media Section','المقر الرئيسي : قسم الاعلام')),
buildTextRow(EnquiryAssetIconPath.phone,context.translate('Tel : 00971 46080000','الهاتف : 0097146080000'),),
buildTextRow(EnquiryAssetIconPath.fax, context.translate('Fax : 0097143273535','فاكس : 0097143273535')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('P.O.Box : 127000 Dubai','ص.ب: : 127000 دبي')),
buildTextRow(EnquiryAssetIconPath.at, context.translate('Email Address : GCO@fcsc.gov.ae','البريد الإلكتروني : GCO@fcsc.gov.ae')),
buildTextRow(EnquiryAssetIconPath.map,context.translate( 'Latitude : 25.223926','خط العرض : 25.223926')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('Longitude : 55.350526','خط الطول : 55.350526')),
],
),
),
SizedBox(height: 10,),
Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(4.0), // Slight curve
),
padding: EdgeInsets.all(7.0),
height: screenHeight*0.34,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(context.translate('SGDS','أهداف التنمية المستدامة'),
style: TextStyle(
color: Color(0xFF265E84),
fontSize: 20,
fontFamily: 'Roboto',
fontWeight: FontWeight.w500,
),
),
buildTextRow(EnquiryAssetIconPath.building,context.translate('Office : SDGs','المقر الرئيسي : أهداف التنمية المستدامة')),
buildTextRow(EnquiryAssetIconPath.phone,context.translate('Tel : 00971 46080000','الهاتف : 0097146080000'),),
buildTextRow(EnquiryAssetIconPath.fax, context.translate('Fax : 0097143273535','فاكس : 0097143273535')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('P.O.Box : 127000 Dubai','ص.ب: : 127000 دبي')),
buildTextRow(EnquiryAssetIconPath.at, context.translate('Email Address : sdgs@fcsc.gov.ae','البريد الإلكتروني : sdgs@fcsc.gov.ae')),
buildTextRow(EnquiryAssetIconPath.map,context.translate( 'Latitude : 25.223926','خط العرض : 25.223926')),
buildTextRow(EnquiryAssetIconPath.map, context.translate('Longitude : 55.350526','خط الطول : 55.350526')),
],
),
),
],
),
),
), title: Text(context.translate('Contact Us','اتصل بنا')),);
}
Widget buildTextRow(String iconName, String text) {
return Padding(
padding: const EdgeInsets.only(top:8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
SvgPicture.asset(
iconName,
semanticsLabel: 'Filter',
width: 24,
height: 24,
),
SizedBox(width: 8), // Add spacing if needed
Text(
text, // Dynamic text
style: TextStyle(
fontSize: 16,
color: Color(0xFF878787),
),
),
],
),
);
}
}

View File

@ -974,6 +974,11 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
title: Text(AppLocalizations.of(context)!.guide_title),
onTap: () => _navigateTo(context, '/user-guide'),
),
ListTile(
leading: Icon(Icons.phone),
title: const Text('Contact'),
onTap: () => context.push('/contact'),
),
if (userId != 'guest')
ListTile(
leading: Icon(Icons.logout),

View File

@ -139,6 +139,7 @@ flutter:
- assets/icons/misc/group.png
- assets/icons/misc/search.png
- assets/icons/bookmark/
- assets/icons/enquiry/
fonts:
- family: Segoe