From 82e6732f6e21b0ad55dc3c949c7acb97dd8e686b Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Thu, 10 Jun 2021 21:49:17 +0800 Subject: [PATCH] Add bug report link in settings --- lib/l10n/app_en.arb | 4 ++++ lib/widget/settings.dart | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index a75eaf1e..f5acba12 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -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" diff --git a/lib/widget/settings.dart b/lib/widget/settings.dart index b0307e47..807a0e6a 100644 --- a/lib/widget/settings.dart +++ b/lib/widget/settings.dart @@ -89,6 +89,13 @@ class _SettingsState extends State { 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 { } 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";