mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
tweaks (#1810)
* tweak * opt: image quality * opt: VideoPlayerServiceHandler * fixes * update Signed-off-by: dom <githubaccount56556@proton.me> * fix get file name Signed-off-by: dom <githubaccount56556@proton.me> --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
219228f8b5
commit
038f03a4e7
@@ -152,7 +152,7 @@ class _LiveEmotePanelState extends State<LiveEmotePanel>
|
||||
width: width,
|
||||
height: height,
|
||||
type: ImageType.emote,
|
||||
quality: item.pkgType == 3 ? null : 80,
|
||||
quality: item.pkgType == 3 ? 1 : 80,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -79,9 +79,7 @@ class _RcmdPageState extends CommonPageState<RcmdPage, RcmdController>
|
||||
child: Card(
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10,
|
||||
),
|
||||
padding: const .symmetric(horizontal: 10),
|
||||
child: Text(
|
||||
'上次看到这里\n点击刷新',
|
||||
textAlign: .center,
|
||||
@@ -95,9 +93,7 @@ class _RcmdPageState extends CommonPageState<RcmdPage, RcmdController>
|
||||
),
|
||||
);
|
||||
}
|
||||
int actualIndex = controller.lastRefreshAt == null
|
||||
? index
|
||||
: index > controller.lastRefreshAt!
|
||||
final actualIndex = index > controller.lastRefreshAt!
|
||||
? index - 1
|
||||
: index;
|
||||
return VideoCardV(
|
||||
|
||||
@@ -205,8 +205,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
}
|
||||
}
|
||||
|
||||
void playCallBack() {
|
||||
plPlayerController?.play();
|
||||
Future<void>? playCallBack() {
|
||||
return plPlayerController?.play();
|
||||
}
|
||||
|
||||
// 播放器状态监听
|
||||
|
||||
Reference in New Issue
Block a user