mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Feedback: Send platform name in the email
This commit is contained in:
@ -113,12 +113,13 @@ class AppDrawer extends StatelessWidget {
|
|||||||
leading: Icon(Icons.bug_report, color: textStyle.color),
|
leading: Icon(Icons.bug_report, color: textStyle.color),
|
||||||
title: Text('Bug Report', style: textStyle),
|
title: Text('Bug Report', style: textStyle),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
var platform = Platform.operatingSystem;
|
||||||
var versionText = await getVersionString();
|
var versionText = await getVersionString();
|
||||||
var appLogsFilePath = await dumpAppLogs();
|
var appLogsFilePath = await dumpAppLogs();
|
||||||
|
|
||||||
final Email email = Email(
|
final Email email = Email(
|
||||||
body:
|
body:
|
||||||
"Hey!\n\nI found a bug in GitJournal - \n \n\nVersion: $versionText",
|
"Hey!\n\nI found a bug in GitJournal - \n \n\nVersion: $versionText\nPlatform: $platform",
|
||||||
subject: 'GitJournal Bug',
|
subject: 'GitJournal Bug',
|
||||||
recipients: ['gitjournal.io+bugs@gmail.com'],
|
recipients: ['gitjournal.io+bugs@gmail.com'],
|
||||||
attachmentPath: appLogsFilePath,
|
attachmentPath: appLogsFilePath,
|
||||||
|
Reference in New Issue
Block a user