mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 01:10:31 -07:00
fix: Player orientation title (#166)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
a518ae457e
commit
7877cae8ea
3 changed files with 7 additions and 7 deletions
|
|
@ -392,7 +392,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
|
||||||
context,
|
context,
|
||||||
label: "${context.localized.theme} ${context.localized.mode}",
|
label: "${context.localized.theme} ${context.localized.mode}",
|
||||||
items: ThemeMode.values,
|
items: ThemeMode.values,
|
||||||
itemBuilder: (type) => RadioListTile.adaptive(
|
itemBuilder: (type) => RadioListTile(
|
||||||
value: type,
|
value: type,
|
||||||
title: Text(type?.label(context) ?? context.localized.other),
|
title: Text(type?.label(context) ?? context.localized.other),
|
||||||
contentPadding: EdgeInsets.zero,
|
contentPadding: EdgeInsets.zero,
|
||||||
|
|
@ -414,7 +414,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
|
||||||
builder: (context, ref, child) => ListTile(
|
builder: (context, ref, child) => ListTile(
|
||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
Checkbox.adaptive(
|
Checkbox(
|
||||||
value: type == ref.watch(clientSettingsProvider.select((value) => value.themeColor)),
|
value: type == ref.watch(clientSettingsProvider.select((value) => value.themeColor)),
|
||||||
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setThemeColor(type),
|
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setThemeColor(type),
|
||||||
),
|
),
|
||||||
|
|
@ -463,7 +463,7 @@ class _ClientSettingsPageState extends ConsumerState<ClientSettingsPage> {
|
||||||
builder: (context, ref, child) => ListTile(
|
builder: (context, ref, child) => ListTile(
|
||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
Checkbox.adaptive(
|
Checkbox(
|
||||||
value: type == ref.watch(clientSettingsProvider.select((value) => value.schemeVariant)),
|
value: type == ref.watch(clientSettingsProvider.select((value) => value.schemeVariant)),
|
||||||
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setSchemeVariant(type),
|
onChanged: (value) => ref.read(clientSettingsProvider.notifier).setSchemeVariant(type),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ class _PlayerSettingsPageState extends ConsumerState<PlayerSettingsPage> {
|
||||||
context,
|
context,
|
||||||
label: context.localized.videoScalingFillScreenTitle,
|
label: context.localized.videoScalingFillScreenTitle,
|
||||||
items: BoxFit.values,
|
items: BoxFit.values,
|
||||||
itemBuilder: (type) => RadioListTile.adaptive(
|
itemBuilder: (type) => RadioListTile(
|
||||||
title: Text(type?.label(context) ?? ""),
|
title: Text(type?.label(context) ?? ""),
|
||||||
value: type,
|
value: type,
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ class _VideoOptionsMobileState extends ConsumerState<VideoOptions> {
|
||||||
child: Text(context.localized.videoScalingFill),
|
child: Text(context.localized.videoScalingFill),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Switch.adaptive(
|
Switch(
|
||||||
value: videoSettings.fillScreen,
|
value: videoSettings.fillScreen,
|
||||||
onChanged: (value) => ref.read(videoPlayerSettingsProvider.notifier).setFillScreen(value),
|
onChanged: (value) => ref.read(videoPlayerSettingsProvider.notifier).setFillScreen(value),
|
||||||
)
|
)
|
||||||
|
|
@ -524,7 +524,7 @@ Future<void> showOrientationOptions(BuildContext context, WidgetRef ref) async {
|
||||||
return StatefulBuilder(builder: (context, state) {
|
return StatefulBuilder(builder: (context, state) {
|
||||||
return SimpleDialog(
|
return SimpleDialog(
|
||||||
contentPadding: const EdgeInsets.only(top: 8, bottom: 24),
|
contentPadding: const EdgeInsets.only(top: 8, bottom: 24),
|
||||||
title: Row(children: [Text(context.localized.playbackRate)]),
|
title: Row(children: [Text(context.localized.playerSettingsOrientationTitle)]),
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12).copyWith(top: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 12).copyWith(top: 6),
|
||||||
|
|
@ -535,7 +535,7 @@ Future<void> showOrientationOptions(BuildContext context, WidgetRef ref) async {
|
||||||
children: [
|
children: [
|
||||||
const Divider(),
|
const Divider(),
|
||||||
...DeviceOrientation.values.map(
|
...DeviceOrientation.values.map(
|
||||||
(orientation) => CheckboxListTile.adaptive(
|
(orientation) => CheckboxListTile(
|
||||||
title: Text(orientation.label(context)),
|
title: Text(orientation.label(context)),
|
||||||
value: orientations.contains(orientation),
|
value: orientations.contains(orientation),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue