email fixed
parent
8b0c44e35b
commit
ca4532a1ee
|
@ -42,7 +42,6 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||||
|
|
||||||
void _sendEmail() async {
|
void _sendEmail() async {
|
||||||
{
|
{
|
||||||
//TODO Mail senden funktioniert noch nicht
|
|
||||||
final Uri params = Uri(
|
final Uri params = Uri(
|
||||||
scheme: "mailto",
|
scheme: "mailto",
|
||||||
path: email,
|
path: email,
|
||||||
|
|
|
@ -23,14 +23,15 @@ class AllWorkersWidget extends StatefulWidget {
|
||||||
|
|
||||||
class _AllWorkersWidgetState extends State<AllWorkersWidget> {
|
class _AllWorkersWidgetState extends State<AllWorkersWidget> {
|
||||||
void _mailTo() async {
|
void _mailTo() async {
|
||||||
var mailUrl = "mailto: ${widget.userEmail}";
|
{
|
||||||
print("widget.userEmail ${widget.userEmail}");
|
final Uri params = Uri(
|
||||||
|
scheme: "mailto",
|
||||||
if (await canLaunchUrlString(mailUrl)) {
|
path: widget.userEmail,
|
||||||
await launchUrlString(mailUrl);
|
query:
|
||||||
} else {
|
"subject=Hey from JobFinder",
|
||||||
print("error");
|
);
|
||||||
throw "Error Occured";
|
final url = params.toString();
|
||||||
|
launchUrlString(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,16 +102,15 @@ class _JobDetailsScreenState extends State<JobDetailsScreen> {
|
||||||
}
|
}
|
||||||
|
|
||||||
applyForJob() {
|
applyForJob() {
|
||||||
//TODO Mail senden funktioniert noch nicht
|
final Uri params = Uri(
|
||||||
final Uri params = Uri(
|
scheme: "mailto",
|
||||||
scheme: "mailto",
|
path: emailCompany,
|
||||||
path: emailCompany,
|
query:
|
||||||
query:
|
"subject=Hey from JobFinder",
|
||||||
"subject=Applying for $jobTitle&body=Hello, please attach Resume CV file",
|
);
|
||||||
);
|
final url = params.toString();
|
||||||
final url = params.toString();
|
launchUrlString(url);
|
||||||
launchUrlString(url);
|
|
||||||
addNewApplicants();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void addNewApplicants() async {
|
void addNewApplicants() async {
|
||||||
|
|
Loading…
Reference in New Issue