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