mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 16:16:14 +08:00
@@ -61,7 +61,7 @@ class _SearchTrendingPageState extends State<SearchTrendingPage> {
|
|||||||
? min(640.0, maxWidth * 0.6)
|
? min(640.0, maxWidth * 0.6)
|
||||||
: maxWidth;
|
: maxWidth;
|
||||||
final height = width * 528 / 1125;
|
final height = width * 528 / 1125;
|
||||||
_offset = height - 56 - Get.mediaQuery.padding.top;
|
_offset = height - 56 - MediaQuery.paddingOf(context).top;
|
||||||
listener();
|
listener();
|
||||||
final removePadding = maxWidth > width;
|
final removePadding = maxWidth > width;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
|||||||
@@ -158,9 +158,9 @@ class _PgcPanelState extends State<PgcPanel> {
|
|||||||
return Container(
|
return Container(
|
||||||
width: 150,
|
width: 150,
|
||||||
height: 60,
|
height: 60,
|
||||||
margin: EdgeInsets.only(
|
margin: index != widget.pages.length - 1
|
||||||
right: index == widget.pages.length - 1 ? 0 : 10,
|
? const EdgeInsets.only(right: 10)
|
||||||
),
|
: null,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: theme.colorScheme.onInverseSurface,
|
color: theme.colorScheme.onInverseSurface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(6)),
|
borderRadius: const BorderRadius.all(Radius.circular(6)),
|
||||||
|
|||||||
@@ -145,9 +145,9 @@ class _PagesPanelState extends State<PagesPanel> {
|
|||||||
final item = pages[i];
|
final item = pages[i];
|
||||||
return Container(
|
return Container(
|
||||||
width: 150,
|
width: 150,
|
||||||
margin: EdgeInsets.only(
|
margin: i != pages.length - 1
|
||||||
right: i != pages.length - 1 ? 10 : 0,
|
? const EdgeInsets.only(right: 10)
|
||||||
),
|
: null,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: theme.colorScheme.onInverseSurface,
|
color: theme.colorScheme.onInverseSurface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(6)),
|
borderRadius: const BorderRadius.all(Radius.circular(6)),
|
||||||
@@ -158,7 +158,9 @@ class _PagesPanelState extends State<PagesPanel> {
|
|||||||
Get.back();
|
Get.back();
|
||||||
}
|
}
|
||||||
widget.ugcIntroController.onChangeEpisode(
|
widget.ugcIntroController.onChangeEpisode(
|
||||||
item..bvid ??= widget.bvid,
|
item
|
||||||
|
..bvid ??= widget.bvid
|
||||||
|
..cover ??= widget.cover,
|
||||||
);
|
);
|
||||||
if (widget.list != null &&
|
if (widget.list != null &&
|
||||||
widget
|
widget
|
||||||
|
|||||||
@@ -1945,13 +1945,16 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
],
|
],
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: SeasonPanel(
|
child: Obx(
|
||||||
|
() => SeasonPanel(
|
||||||
|
key: ValueKey(introController.videoDetail.value),
|
||||||
heroTag: heroTag,
|
heroTag: heroTag,
|
||||||
onTap: false,
|
onTap: false,
|
||||||
showEpisodes: showEpisodes,
|
showEpisodes: showEpisodes,
|
||||||
ugcIntroController: ugcIntroController,
|
ugcIntroController: ugcIntroController,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => EpisodePanel(
|
() => EpisodePanel(
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class HeaderControlState extends TripleState<HeaderControl> {
|
|||||||
late CommonIntroController introController = videoDetailCtr.isUgc
|
late CommonIntroController introController = videoDetailCtr.isUgc
|
||||||
? ugcIntroController
|
? ugcIntroController
|
||||||
: pgcIntroController;
|
: pgcIntroController;
|
||||||
late final isPortrait = widget.isPortrait;
|
bool get isPortrait => widget.isPortrait;
|
||||||
late final horizontalScreen = videoDetailCtr.horizontalScreen;
|
late final horizontalScreen = videoDetailCtr.horizontalScreen;
|
||||||
RxString now = ''.obs;
|
RxString now = ''.obs;
|
||||||
Timer? clock;
|
Timer? clock;
|
||||||
|
|||||||
Reference in New Issue
Block a user