Merge translation link into translator credit

Keep settings lean
This commit is contained in:
Ming Ming 2021-07-03 22:36:18 +08:00
parent 89eaff4ea8
commit 523ab1fd5e

View file

@ -109,12 +109,16 @@ class _SettingsState extends State<Settings> {
title: Text( title: Text(
AppLocalizations.of(context).settingsTranslatorTitle), AppLocalizations.of(context).settingsTranslatorTitle),
subtitle: Text(translator), subtitle: Text(translator),
), onTap: () {
launch(_translationUrl);
},
)
else
ListTile( ListTile(
title: Text("Improve translation"), title: Text("Improve translation"),
subtitle: Text("Help translating to your language"), subtitle: Text("Help translating to your language"),
onTap: () async { onTap: () {
await launch(_translationUrl); launch(_translationUrl);
}, },
), ),
], ],