Closes #1050

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-20 22:04:39 +08:00
parent e096ebcbba
commit 76f1d0129b
171 changed files with 2190 additions and 2063 deletions

View File

@@ -27,6 +27,7 @@ class PgcIntroPage extends StatefulWidget {
final Function showEpisodes;
final Function showIntroDetail;
final double maxWidth;
final bool isLandscape;
const PgcIntroPage({
super.key,
@@ -35,6 +36,7 @@ class PgcIntroPage extends StatefulWidget {
required this.showEpisodes,
required this.showIntroDetail,
required this.maxWidth,
required this.isLandscape,
});
@override
@@ -62,7 +64,7 @@ class _PgcIntroPageState extends TripleState<PgcIntroPage>
super.build(context);
final ThemeData theme = Theme.of(context);
final item = introController.pgcItem;
final isLandscape = context.isLandscape;
final isLandscape = widget.isLandscape;
Widget sliver = SliverToBoxAdapter(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,

View File

@@ -105,7 +105,7 @@ class _IntroDetailState extends CommonCollapseSlidePageState<PgcIntroPanel> {
left: 14,
right: 14,
top: 14,
bottom: MediaQuery.paddingOf(context).bottom + 80,
bottom: MediaQuery.viewPaddingOf(context).bottom + 100,
),
children: [
Text(

View File

@@ -109,8 +109,8 @@ class _PgcPanelState extends State<PgcPanel> {
SizedBox(
height: 34,
child: TextButton(
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
style: const ButtonStyle(
padding: WidgetStatePropertyAll(EdgeInsets.zero),
),
onPressed: () => widget.showEpisodes(
null,
@@ -134,13 +134,13 @@ class _PgcPanelState extends State<PgcPanel> {
SizedBox(
height: 60,
child: ListView.builder(
padding: EdgeInsets.zero,
controller: listViewScrollCtr,
scrollDirection: Axis.horizontal,
itemCount: widget.pages.length,
itemExtent: 150,
itemBuilder: (BuildContext context, int index) {
return _buildItem(theme, isPugv, index);
},
itemBuilder: (BuildContext context, int index) =>
_buildItem(theme, isPugv, index),
),
),
],