Commit 6b7a8e61 authored by r.manan@eksad.com's avatar r.manan@eksad.com

contact_us

parent 9366c9d8
......@@ -31,23 +31,27 @@ class _ContactUsState extends State<ContactUs> {
appBar: ResponsiveWidget.isSmallScreen(context)
? AppBarKecil()
: AppbarHomeLarge(screenSize, context, Colors.black, Colors.black,
Colors.black, Colors.black, Colors.blue),
Colors.black, Colors.black, Colors.blue),
body: ListView(
children: [
ContactUs1(),
const ContactUs1(),
ContactUs2(),
Footer(),
const Footer(),
],
),
);
}
AppBar AppBarKecil() {
return AppBar(
leading: IconButton(
onPressed: () => _scaffoldKey.currentState!.openDrawer(),
icon: const Icon(Icons.list_outlined,size: 30,color: Colors.black,),),
icon: const Icon(
Icons.list_outlined,
size: 30,
color: Colors.black,
),
),
backgroundColor: Colors.white,
centerTitle: true,
title: SizedBox(
......@@ -60,4 +64,3 @@ class _ContactUsState extends State<ContactUs> {
);
}
}
......@@ -25,20 +25,20 @@ class ContactUs2 extends StatelessWidget {
// color: Colors.blue,
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: <Color>[
Color(0xff137fc2),
Color(0xff3958d5),
Color(0xff184b80),
],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
)),
colors: <Color>[
Color(0xff137fc2),
Color(0xff3958d5),
Color(0xff184b80),
],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
)),
child: Row(
children: [
const Spacer(
flex: 3,
),
Container(
SizedBox(
height: screenSize.height * 0.7,
width: screenSize.width * 0.35,
child: Container(
......@@ -47,14 +47,13 @@ class ContactUs2 extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
SizedBox(
height: screenSize.height * 0.23,
child: Text(
'Yes, you need '
'\n'
'an outsourcing partner '
'you can trust and thrive with',
'\n'
'an outsourcing partner '
'you can trust and thrive with',
textAlign: TextAlign.justify,
style: GoogleFonts.poppins(
color: Colors.white,
......@@ -64,12 +63,12 @@ class ContactUs2 extends StatelessWidget {
const Spacer(
flex: 1,
),
Container(
SizedBox(
height: screenSize.height * 0.3,
child: Text(
'Go for the one who knows what they are doing, those who you share values with, '
'and those who will celebrate your success, and help you win over your biggest challenges. '
'\nLooking for an outsourcing partner? ',
'and those who will celebrate your success, and help you win over your biggest challenges. '
'\nLooking for an outsourcing partner? ',
textAlign: TextAlign.justify,
style: GoogleFonts.poppins(
color: Colors.white,
......@@ -110,7 +109,7 @@ class ContactUs2 extends StatelessWidget {
fontSize: 20,
fontWeight: FontWeight.w400),
),
Container(
SizedBox(
width: 450,
child: TextFormField(
controller: nameController,
......@@ -155,7 +154,7 @@ class ContactUs2 extends StatelessWidget {
),
Row(
children: [
Container(
SizedBox(
width: 220,
child: TextFormField(
controller: phoneController,
......@@ -166,12 +165,12 @@ class ContactUs2 extends StatelessWidget {
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.white),
BorderSide(width: 1, color: Colors.white),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.white),
BorderSide(width: 1, color: Colors.white),
),
),
),
......@@ -179,7 +178,7 @@ class ContactUs2 extends StatelessWidget {
const SizedBox(
width: 7,
),
Container(
SizedBox(
width: 220,
child: TextFormField(
controller: emailController,
......@@ -190,12 +189,12 @@ class ContactUs2 extends StatelessWidget {
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.white),
BorderSide(width: 1, color: Colors.white),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(width: 1, color: Colors.white),
BorderSide(width: 1, color: Colors.white),
),
),
),
......@@ -215,7 +214,7 @@ class ContactUs2 extends StatelessWidget {
fontSize: 20,
fontWeight: FontWeight.w400),
),
Container(
SizedBox(
width: 450,
height: 107,
child: TextFormField(
......@@ -260,11 +259,11 @@ class ContactUs2 extends StatelessWidget {
ScaffoldMessenger.of(context).showSnackBar(
response == 200
? const SnackBar(
content: Text('Message Sent!'),
backgroundColor: Colors.green)
content: Text('Message Sent!'),
backgroundColor: Colors.green)
: const SnackBar(
content: Text('Failed to send message!'),
backgroundColor: Colors.red),
content: Text('Failed to send message!'),
backgroundColor: Colors.red),
);
nameController.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment