Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-13 14:16:19 +08:00
parent b2100f3872
commit 685852c0a4
18 changed files with 618 additions and 675 deletions

View File

@@ -201,18 +201,18 @@ class HeaderControlState extends TripleState<HeaderControl> {
const SizedBox(width: 10),
Builder(
builder: (context) => PopupMenuButton(
initialValue: SuperResolutionType
.values[widget.controller.superResolutionType],
initialValue:
widget.controller.superResolutionType.value,
child: Padding(
padding: const EdgeInsets.all(4),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
SuperResolutionType
.values[widget
.controller
.superResolutionType]
widget
.controller
.superResolutionType
.value
.title,
strutStyle: const StrutStyle(
leading: 0,
@@ -235,7 +235,7 @@ class HeaderControlState extends TripleState<HeaderControl> {
),
),
onSelected: (value) {
widget.controller.setShader(value.index);
widget.controller.setShader(value);
if (context.mounted) {
(context as Element).markNeedsBuild();
}