Add bug report link in settings

This commit is contained in:
Ming Ming 2021-06-10 21:49:17 +08:00
parent d2768e6066
commit 82e6732f6e
2 changed files with 13 additions and 0 deletions

View file

@ -321,6 +321,10 @@
"@settingsSourceCodeTitle": {
"description": "Title of the source code item"
},
"settingsBugReportTitle": "Report issue",
"@settingsBugReportTitle": {
"description": "Report issue"
},
"settingsTranslatorTitle": "Translator",
"@settingsTranslatorTitle": {
"description": "Title of the translator item"

View file

@ -89,6 +89,13 @@ class _SettingsState extends State<Settings> {
await launch(_sourceRepo);
},
),
ListTile(
title:
Text(AppLocalizations.of(context).settingsBugReportTitle),
onTap: () {
launch(_bugReportUrl);
},
),
ListTile(
title:
Text(AppLocalizations.of(context).settingsTranslatorTitle),
@ -178,6 +185,8 @@ class _SettingsState extends State<Settings> {
}
static const String _sourceRepo = "https://gitlab.com/nkming2/nc-photos";
static const String _bugReportUrl =
"https://gitlab.com/nkming2/nc-photos/-/issues";
static const String _translationUrl =
"https://gitlab.com/nkming2/nc-photos/-/tree/master/lib/l10n";