mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
fix: Small bugfixes (#303)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
d96cafecff
commit
5bf4579a49
8 changed files with 48 additions and 51 deletions
|
|
@ -28,9 +28,7 @@ List<Widget> buildClientSettingsVisual(
|
|||
label: Text(context.localized.displayLanguage),
|
||||
trailing: Localizations.override(
|
||||
context: context,
|
||||
locale: ref.watch(
|
||||
clientSettingsProvider.select((value) => (value.selectedLocale ?? currentLocale)),
|
||||
),
|
||||
locale: ref.watch(clientSettingsProvider.select((value) => (value.selectedLocale ?? currentLocale))),
|
||||
child: Builder(builder: (context) {
|
||||
String language = "Unknown";
|
||||
try {
|
||||
|
|
@ -49,9 +47,7 @@ List<Widget> buildClientSettingsVisual(
|
|||
context: context,
|
||||
locale: entry,
|
||||
child: Builder(builder: (context) {
|
||||
return Text(
|
||||
context.localized.nativeName,
|
||||
);
|
||||
return Text("${context.localized.nativeName} (${entry.languageCode.toUpperCase()})");
|
||||
}),
|
||||
),
|
||||
onTap: () => ref
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue