fix: video page theme

mod: popscope

related #459

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-16 15:33:55 +08:00
parent 7854c5e6b9
commit 57d2d3f5d9
4 changed files with 32 additions and 16 deletions

View File

@@ -138,9 +138,15 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
),
);
late final ThemeData themeData = widget.darkVideoPage
? MyApp.darkThemeData ?? Theme.of(context)
: Theme.of(context);
@override
void didChangeDependencies() {
super.didChangeDependencies();
themeData = widget.darkVideoPage
? MyApp.darkThemeData ?? Theme.of(context)
: Theme.of(context);
}
late ThemeData themeData;
@override
Widget build(BuildContext context) {