opt set dynpage ratio

tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-08 12:21:00 +08:00
parent c0287d05be
commit d108373c33
5 changed files with 14 additions and 17 deletions

View File

@@ -524,8 +524,9 @@ class _ArticlePageState extends CommonDynPageState<ArticlePage> {
value: controller.ratio.first,
onChanged: (value) {
if (value >= 10 && value <= 90) {
value = value.toPrecision(2);
controller.ratio
..[0] = value.toPrecision(2)
..[0] = value
..[1] = 100 - value;
GStorage.setting.put(
SettingBoxKey.dynamicDetailRatio,

View File

@@ -100,8 +100,9 @@ class _DynamicDetailPageState extends CommonDynPageState<DynamicDetailPage> {
value: controller.ratio.first,
onChanged: (value) {
if (value >= 10 && value <= 90) {
value = value.toPrecision(2);
controller.ratio
..[0] = value.toPrecision(2)
..[0] = value
..[1] = 100 - value;
GStorage.setting.put(
SettingBoxKey.dynamicDetailRatio,

View File

@@ -111,12 +111,9 @@ class _PgcIntroPageState extends State<PgcIntroPage>
);
}
return SliverPadding(
padding: EdgeInsets.only(
left: StyleString.safeSpace,
right: StyleString.safeSpace,
top: StyleString.safeSpace,
bottom: StyleString.safeSpace + MediaQuery.paddingOf(context).bottom,
),
padding:
const EdgeInsets.all(StyleString.safeSpace) +
const EdgeInsets.only(bottom: 50),
sliver: sliver,
);
}

View File

@@ -1784,14 +1784,12 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
),
),
] else
Obx(
() => PgcIntroPage(
key: pgcPanelKey,
heroTag: heroTag,
cid: videoDetailController.cid.value,
showEpisodes: showEpisodes,
showIntroDetail: showIntroDetail,
),
PgcIntroPage(
key: pgcPanelKey,
heroTag: heroTag,
cid: videoDetailController.cid.value,
showEpisodes: showEpisodes,
showIntroDetail: showIntroDetail,
),
SliverToBoxAdapter(
child: SizedBox(

View File

@@ -463,7 +463,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
onTap: () {
// part -> playAll -> season(pgc)
if (!anySeason || !isPart) {
if (isPlayAll && !isPart) {
widget.showEpisodes?.call();
return;
}