fix: Player orientation title (#166)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-11-28 21:47:07 +01:00 committed by GitHub
parent a518ae457e
commit 7877cae8ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -392,7 +392,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
context,
label: "${context.localized.theme} ${context.localized.mode}",
items: ThemeMode.values,
itemBuilder: (type) => RadioListTile.adaptive(
itemBuilder: (type) => RadioListTile(
value: type,
title: Text(type?.label(context) ?? context.localized.other),
contentPadding: EdgeInsets.zero,
@ -414,7 +414,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
builder: (context, ref, child) => ListTile(
title: Row(
children: [
Checkbox.adaptive(
Checkbox(
value: type == ref.watch(clientSettingsProvider.select((value) => value.themeColor)),
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setThemeColor(type),
),
@ -463,7 +463,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
builder: (context, ref, child) => ListTile(
title: Row(
children: [
Checkbox.adaptive(
Checkbox(
value: type == ref.watch(clientSettingsProvider.select((value) => value.schemeVariant)),
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setSchemeVariant(type),
),

View file

@ -67,7 +67,7 @@ class _PlayerSettingsPageState extends ConsumerState<PlayerSettingsPage> {
context,
label: context.localized.videoScalingFillScreenTitle,
items: BoxFit.values,
itemBuilder: (type) => RadioListTile.adaptive(
itemBuilder: (type) => RadioListTile(
title: Text(type?.label(context) ?? ""),
value: type,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),