Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-24 09:38:34 +08:00
parent 47aaa28898
commit 87c7b84e5c
5 changed files with 169 additions and 158 deletions

View File

@@ -24,22 +24,17 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
StatefulWidgetBuilder builder, {
ValueGetter<EdgeInsets>? padding,
}) {
final theme = this.theme;
return PageUtils.showVideoBottomSheet(
context,
maxWidth: 512,
padding: padding,
child: StatefulBuilder(
builder: (context, setState) {
final theme = this.theme;
if (theme != null) {
return Theme(
child: theme != null
? Theme(
data: theme,
child: builder(this.context, setState),
);
}
return builder(context, setState);
},
),
child: StatefulBuilder(builder: builder),
)
: StatefulBuilder(builder: builder),
);
}