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