|
@@ -39,7 +39,7 @@ Future<void> sendLogs(
|
|
),
|
|
),
|
|
Padding(padding: EdgeInsets.all(4)),
|
|
Padding(padding: EdgeInsets.all(4)),
|
|
Text(
|
|
Text(
|
|
- "view logs",
|
|
|
|
|
|
+ "View logs",
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
color: Colors.white.withOpacity(0.85),
|
|
color: Colors.white.withOpacity(0.85),
|
|
),
|
|
),
|
|
@@ -78,7 +78,7 @@ Future<void> sendLogs(
|
|
content.addAll(
|
|
content.addAll(
|
|
[
|
|
[
|
|
Text(
|
|
Text(
|
|
- "this will send across logs and metrics that will help us debug your issue better",
|
|
|
|
|
|
+ "This will send across logs and metrics that will help us debug your issue better",
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
height: 1.5,
|
|
height: 1.5,
|
|
fontFamily: 'Ubuntu',
|
|
fontFamily: 'Ubuntu',
|
|
@@ -132,7 +132,7 @@ Future<void> _sendLogs(
|
|
}
|
|
}
|
|
|
|
|
|
Future<String> getZippedLogsFile(BuildContext context) async {
|
|
Future<String> getZippedLogsFile(BuildContext context) async {
|
|
- final dialog = createProgressDialog(context, "preparing logs...");
|
|
|
|
|
|
+ final dialog = createProgressDialog(context, "Preparing logs...");
|
|
await dialog.show();
|
|
await dialog.show();
|
|
final tempPath = (await getTemporaryDirectory()).path;
|
|
final tempPath = (await getTemporaryDirectory()).path;
|
|
final zipFilePath = tempPath + "/logs.zip";
|
|
final zipFilePath = tempPath + "/logs.zip";
|
|
@@ -148,8 +148,8 @@ Future<String> getZippedLogsFile(BuildContext context) async {
|
|
Future<void> shareLogs(
|
|
Future<void> shareLogs(
|
|
BuildContext context, String toEmail, String zipFilePath) async {
|
|
BuildContext context, String toEmail, String zipFilePath) async {
|
|
final result = await showChoiceDialog(
|
|
final result = await showChoiceDialog(
|
|
- context, "email logs", "please send the logs to $toEmail",
|
|
|
|
- firstAction: "copy email", secondAction: "send");
|
|
|
|
|
|
+ context, "Email logs", "Please send the logs to $toEmail",
|
|
|
|
+ firstAction: "Copy email", secondAction: "Send");
|
|
if (result != null && result == DialogUserChoice.firstChoice) {
|
|
if (result != null && result == DialogUserChoice.firstChoice) {
|
|
await Clipboard.setData(ClipboardData(text: toEmail));
|
|
await Clipboard.setData(ClipboardData(text: toEmail));
|
|
}
|
|
}
|