mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -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(
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user