mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +01:00
Add bug report link in settings
This commit is contained in:
parent
d2768e6066
commit
82e6732f6e
2 changed files with 13 additions and 0 deletions
|
@ -321,6 +321,10 @@
|
||||||
"@settingsSourceCodeTitle": {
|
"@settingsSourceCodeTitle": {
|
||||||
"description": "Title of the source code item"
|
"description": "Title of the source code item"
|
||||||
},
|
},
|
||||||
|
"settingsBugReportTitle": "Report issue",
|
||||||
|
"@settingsBugReportTitle": {
|
||||||
|
"description": "Report issue"
|
||||||
|
},
|
||||||
"settingsTranslatorTitle": "Translator",
|
"settingsTranslatorTitle": "Translator",
|
||||||
"@settingsTranslatorTitle": {
|
"@settingsTranslatorTitle": {
|
||||||
"description": "Title of the translator item"
|
"description": "Title of the translator item"
|
||||||
|
|
|
@ -89,6 +89,13 @@ class _SettingsState extends State<Settings> {
|
||||||
await launch(_sourceRepo);
|
await launch(_sourceRepo);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
ListTile(
|
||||||
|
title:
|
||||||
|
Text(AppLocalizations.of(context).settingsBugReportTitle),
|
||||||
|
onTap: () {
|
||||||
|
launch(_bugReportUrl);
|
||||||
|
},
|
||||||
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title:
|
title:
|
||||||
Text(AppLocalizations.of(context).settingsTranslatorTitle),
|
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 _sourceRepo = "https://gitlab.com/nkming2/nc-photos";
|
||||||
|
static const String _bugReportUrl =
|
||||||
|
"https://gitlab.com/nkming2/nc-photos/-/issues";
|
||||||
static const String _translationUrl =
|
static const String _translationUrl =
|
||||||
"https://gitlab.com/nkming2/nc-photos/-/tree/master/lib/l10n";
|
"https://gitlab.com/nkming2/nc-photos/-/tree/master/lib/l10n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue