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