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, value: controller.ratio.first,
onChanged: (value) { onChanged: (value) {
if (value >= 10 && value <= 90) { if (value >= 10 && value <= 90) {
value = value.toPrecision(2);
controller.ratio controller.ratio
..[0] = value.toPrecision(2) ..[0] = value
..[1] = 100 - value; ..[1] = 100 - value;
GStorage.setting.put( GStorage.setting.put(
SettingBoxKey.dynamicDetailRatio, SettingBoxKey.dynamicDetailRatio,

View File

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

View File

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

View File

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

View File

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