From 92f59b3936db5a246e421813f3356503f7854fe3 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Wed, 23 Jun 2021 02:18:21 +0800 Subject: [PATCH] Separate translator credit and tranlation link --- lib/widget/settings.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/widget/settings.dart b/lib/widget/settings.dart index 807a0e6a..9a6a1f68 100644 --- a/lib/widget/settings.dart +++ b/lib/widget/settings.dart @@ -96,12 +96,15 @@ class _SettingsState extends State { launch(_bugReportUrl); }, ), + if (translator.isNotEmpty) + ListTile( + title: Text( + AppLocalizations.of(context).settingsTranslatorTitle), + subtitle: Text(translator), + ), ListTile( - title: - Text(AppLocalizations.of(context).settingsTranslatorTitle), - subtitle: Text(translator.isEmpty - ? "Help translating to your language" - : translator), + title: Text("Improve translation"), + subtitle: Text("Help translating to your language"), onTap: () async { await launch(_translationUrl); },