mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
Fixed url launch
This commit is contained in:
parent
278e95e5fb
commit
186bb8f468
3 changed files with 11 additions and 3 deletions
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue