Fixed url launch

This commit is contained in:
Vadim 2023-02-05 17:41:00 +03:00
parent 278e95e5fb
commit 186bb8f468
3 changed files with 11 additions and 3 deletions

View file

@ -13,7 +13,10 @@ class ReportIssueListTile extends StatelessWidget {
leading: const Icon(Icons.bug_report),
title: Text(S.of(context).reportIssue),
onTap: () {
launchUrl(Uri.parse(context.read<Environment>().issuesReportUrl));
launchUrl(
Uri.parse(context.read<Environment>().issuesReportUrl),
mode: LaunchMode.externalApplication,
);
},
);
}

View file

@ -13,7 +13,10 @@ class SourceCodeListTile extends StatelessWidget {
leading: const Icon(Icons.code),
title: Text(S.of(context).sourceCode),
onTap: () {
launchUrl(Uri.parse(context.read<Environment>().sourceCodeUrl));
launchUrl(
Uri.parse(context.read<Environment>().sourceCodeUrl),
mode: LaunchMode.externalApplication,
);
},
);
}

View file

@ -14,7 +14,9 @@ class WriteEmailListTile extends StatelessWidget {
title: Text(S.of(context).writeEmail),
onTap: () {
launchUrl(
Uri.parse('mailto:${context.read<Environment>().contactEmail}?subject=M3 Lightmeter'));
Uri.parse('mailto:${context.read<Environment>().contactEmail}?subject=M3 Lightmeter'),
mode: LaunchMode.externalApplication,
);
},
);
}