Capitalize words
This commit is contained in:
parent
db28dc885e
commit
c600f2ea70
3 changed files with 8 additions and 8 deletions
|
@ -38,7 +38,7 @@ class SupportSectionWidget extends StatelessWidget {
|
||||||
launchUrl(emailLaunchUri);
|
launchUrl(emailLaunchUri);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger("SupportSection").severe(e);
|
Logger("SupportSection").severe(e);
|
||||||
showErrorDialog(context, "", "please email us at $kSupportEmail");
|
showErrorDialog(context, "", "Please email us at $kSupportEmail");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SettingsTextItem(text: "Email", icon: Icons.navigate_next),
|
child: SettingsTextItem(text: "Email", icon: Icons.navigate_next),
|
||||||
|
@ -67,7 +67,7 @@ class SupportSectionWidget extends StatelessWidget {
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
behavior: HitTestBehavior.translucent,
|
behavior: HitTestBehavior.translucent,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
await sendLogs(context, "report bug", "bug@ente.io");
|
await sendLogs(context, "Report bug", "bug@ente.io");
|
||||||
},
|
},
|
||||||
onDoubleTap: () async {
|
onDoubleTap: () async {
|
||||||
final zipFilePath = await getZippedLogsFile(context);
|
final zipFilePath = await getZippedLogsFile(context);
|
||||||
|
|
|
@ -225,7 +225,7 @@ class _SyncIndicatorState extends State<SyncIndicator> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
sendLogs(
|
sendLogs(
|
||||||
context,
|
context,
|
||||||
"raise ticket",
|
"Raise ticket",
|
||||||
"support@ente.io",
|
"support@ente.io",
|
||||||
subject: "Backup failed",
|
subject: "Backup failed",
|
||||||
);
|
);
|
||||||
|
|
|
@ -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",
|
context, "Email logs", "Please send the logs to $toEmail",
|
||||||
firstAction: "copy email", secondAction: "send");
|
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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue