Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-10 21:07:06 +08:00
parent 309c871919
commit 88c2ba8059
5 changed files with 19 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ class _SearchTrendingPageState extends State<SearchTrendingPage> {
? min(640.0, maxWidth * 0.6)
: maxWidth;
final height = width * 528 / 1125;
_offset = height - 56 - Get.mediaQuery.padding.top;
_offset = height - 56 - MediaQuery.paddingOf(context).top;
listener();
final removePadding = maxWidth > width;
return Scaffold(

View File

@@ -158,9 +158,9 @@ class _PgcPanelState extends State<PgcPanel> {
return Container(
width: 150,
height: 60,
margin: EdgeInsets.only(
right: index == widget.pages.length - 1 ? 0 : 10,
),
margin: index != widget.pages.length - 1
? const EdgeInsets.only(right: 10)
: null,
child: Material(
color: theme.colorScheme.onInverseSurface,
borderRadius: const BorderRadius.all(Radius.circular(6)),

View File

@@ -145,9 +145,9 @@ class _PagesPanelState extends State<PagesPanel> {
final item = pages[i];
return Container(
width: 150,
margin: EdgeInsets.only(
right: i != pages.length - 1 ? 10 : 0,
),
margin: i != pages.length - 1
? const EdgeInsets.only(right: 10)
: null,
child: Material(
color: theme.colorScheme.onInverseSurface,
borderRadius: const BorderRadius.all(Radius.circular(6)),
@@ -158,7 +158,9 @@ class _PagesPanelState extends State<PagesPanel> {
Get.back();
}
widget.ugcIntroController.onChangeEpisode(
item..bvid ??= widget.bvid,
item
..bvid ??= widget.bvid
..cover ??= widget.cover,
);
if (widget.list != null &&
widget

View File

@@ -1945,11 +1945,14 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
],
Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: SeasonPanel(
heroTag: heroTag,
onTap: false,
showEpisodes: showEpisodes,
ugcIntroController: ugcIntroController,
child: Obx(
() => SeasonPanel(
key: ValueKey(introController.videoDetail.value),
heroTag: heroTag,
onTap: false,
showEpisodes: showEpisodes,
ugcIntroController: ugcIntroController,
),
),
),
Expanded(

View File

@@ -77,7 +77,7 @@ class HeaderControlState extends TripleState<HeaderControl> {
late CommonIntroController introController = videoDetailCtr.isUgc
? ugcIntroController
: pgcIntroController;
late final isPortrait = widget.isPortrait;
bool get isPortrait => widget.isPortrait;
late final horizontalScreen = videoDetailCtr.horizontalScreen;
RxString now = ''.obs;
Timer? clock;