Separate translator credit and tranlation link

This commit is contained in:
Ming Ming 2021-06-23 02:18:21 +08:00
parent c631b68266
commit 92f59b3936

View file

@ -96,12 +96,15 @@ class _SettingsState extends State<Settings> {
launch(_bugReportUrl); launch(_bugReportUrl);
}, },
), ),
if (translator.isNotEmpty)
ListTile(
title: Text(
AppLocalizations.of(context).settingsTranslatorTitle),
subtitle: Text(translator),
),
ListTile( ListTile(
title: title: Text("Improve translation"),
Text(AppLocalizations.of(context).settingsTranslatorTitle), subtitle: Text("Help translating to your language"),
subtitle: Text(translator.isEmpty
? "Help translating to your language"
: translator),
onTap: () async { onTap: () async {
await launch(_translationUrl); await launch(_translationUrl);
}, },