mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
refactor: slight format change
This is so unreadable, there must've been a better way to do this.
This commit is contained in:
parent
63d83a43ad
commit
9a66357f7a
@ -63,9 +63,11 @@ class SUpdateLanguage extends BaseViewModel {
|
|||||||
child: ListBody(
|
child: ListBody(
|
||||||
children: [
|
children: [
|
||||||
RadioListTile(
|
RadioListTile(
|
||||||
|
// TODO(Someone): There must've been a better way to do this.
|
||||||
title: Text(currentlyUsedLanguage.englishName),
|
title: Text(currentlyUsedLanguage.englishName),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'${currentlyUsedLanguage.nativeName} (${LocaleSettings.currentLocale.languageCode}${LocaleSettings.currentLocale.countryCode != null ? '-${LocaleSettings.currentLocale.countryCode}' : ''})'),
|
'${currentlyUsedLanguage.nativeName} (${LocaleSettings.currentLocale.languageCode}${LocaleSettings.currentLocale.countryCode != null ? '-${LocaleSettings.currentLocale.countryCode}' : ''})',
|
||||||
|
),
|
||||||
value:
|
value:
|
||||||
'${LocaleSettings.currentLocale.languageCode}-${LocaleSettings.currentLocale.countryCode}' ==
|
'${LocaleSettings.currentLocale.languageCode}-${LocaleSettings.currentLocale.countryCode}' ==
|
||||||
selectedLanguageCode.value,
|
selectedLanguageCode.value,
|
||||||
@ -110,6 +112,7 @@ class SUpdateLanguage extends BaseViewModel {
|
|||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
// TODO(nullcube): Translation will not update until we refresh the page.
|
||||||
updateLocale(selectedLanguageCode.value);
|
updateLocale(selectedLanguageCode.value);
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user