email fixed

main
Nadezda Kloos 2023-06-20 20:52:00 +02:00
parent 8b0c44e35b
commit ca4532a1ee
3 changed files with 18 additions and 19 deletions

View File

@ -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,

View File

@ -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);
}
}

View File

@ -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",
"subject=Hey from JobFinder",
);
final url = params.toString();
launchUrlString(url);
addNewApplicants();
}
void addNewApplicants() async {