Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medapp_eksad
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qorri_di
medapp_eksad
Commits
37c031b2
Commit
37c031b2
authored
Sep 13, 2022
by
qorri_di
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contact_us2.dart
small_contact_us2.dart
parent
f0b71929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
contact_us2.dart
lib/screen/contact_us/contact_us2.dart
+7
-7
small_contact_us2.dart
lib/screen_small/small_contact/small_contact_us2.dart
+5
-0
No files found.
lib/screen/contact_us/contact_us2.dart
View file @
37c031b2
...
@@ -252,13 +252,13 @@ class ContactUs2 extends StatelessWidget {
...
@@ -252,13 +252,13 @@ class ContactUs2 extends StatelessWidget {
child:
TextButton
(
child:
TextButton
(
style:
Btn_Submit
(),
style:
Btn_Submit
(),
onPressed:
()
async
{
onPressed:
()
async
{
savecontact
(
nameController
.
value
.
text
,
emailController
.
value
.
text
,
phoneController
.
value
.
text
,
messageController
.
value
.
text
);
if
(
_formKey
.
currentState
!.
validate
())
{
if
(
_formKey
.
currentState
!.
validate
())
{
final
response
=
await
SendEmail
(
final
response
=
await
sendEmail
(
nameController
.
value
.
text
,
emailController
.
value
.
text
,
phoneController
.
value
.
text
,
messageController
.
value
.
text
);
savecontact
(
nameController
.
value
.
text
,
nameController
.
value
.
text
,
emailController
.
value
.
text
,
emailController
.
value
.
text
,
phoneController
.
value
.
text
,
phoneController
.
value
.
text
,
...
@@ -297,7 +297,7 @@ class ContactUs2 extends StatelessWidget {
...
@@ -297,7 +297,7 @@ class ContactUs2 extends StatelessWidget {
);
);
}
}
Future
S
endEmail
(
Future
s
endEmail
(
String
name
,
String
phone
,
String
email
,
String
message
)
async
{
String
name
,
String
phone
,
String
email
,
String
message
)
async
{
final
url
=
Uri
.
parse
(
'https://api.emailjs.com/api/v1.0/email/send'
);
final
url
=
Uri
.
parse
(
'https://api.emailjs.com/api/v1.0/email/send'
);
const
serviceId
=
'service_7wwup8c'
;
const
serviceId
=
'service_7wwup8c'
;
...
...
lib/screen_small/small_contact/small_contact_us2.dart
View file @
37c031b2
...
@@ -233,6 +233,11 @@ class _ContactUs2_smallState extends State<ContactUs2_small> {
...
@@ -233,6 +233,11 @@ class _ContactUs2_smallState extends State<ContactUs2_small> {
child:
TextButton
(
child:
TextButton
(
style:
Btn_Submit
(),
style:
Btn_Submit
(),
onPressed:
()
async
{
onPressed:
()
async
{
savecontact
(
nameController
.
value
.
text
,
emailController
.
value
.
text
,
phoneController
.
value
.
text
,
messageController
.
value
.
text
);
if
(
_formKey
.
currentState
!.
validate
())
{
if
(
_formKey
.
currentState
!.
validate
())
{
final
response
=
await
SendEmail
(
final
response
=
await
SendEmail
(
nameController
.
value
.
text
,
nameController
.
value
.
text
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment