mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +08:00
opt ui
Closes #1050 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user