Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-08 21:19:36 +08:00
parent 6f95456d20
commit db30aa8041
2 changed files with 3 additions and 9 deletions

View File

@@ -221,10 +221,10 @@ class _MemberPageState extends State<MemberPage> {
isFollow: isFollow, isFollow: isFollow,
); );
if (res.isSuccess) { if (res.isSuccess) {
if (!context.mounted) return;
e e
..total += isFollow ? -1 : 1 ..total += isFollow ? -1 : 1
..isFollow = !isFollow; ..isFollow = !isFollow;
if (!context.mounted) return;
(context as Element).markNeedsBuild(); (context as Element).markNeedsBuild();
} else { } else {
res.toast(); res.toast();

View File

@@ -1282,7 +1282,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
!isFullScreen && !isFullScreen &&
!videoDetailController.plPlayerController.isDesktopPip && !videoDetailController.plPlayerController.isDesktopPip &&
(videoDetailController.horizontalScreen || isPortrait), (videoDetailController.horizontalScreen || isPortrait),
onPopInvokedWithResult: _onPopInvokedWithResult, onPopInvokedWithResult:
videoDetailController.plPlayerController.onPopInvokedWithResult,
child: Obx( child: Obx(
() => () =>
!videoDetailController.videoState.value || !videoDetailController.videoState.value ||
@@ -2117,13 +2118,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
} }
} }
void _onPopInvokedWithResult(bool didPop, result) {
videoDetailController.plPlayerController.onPopInvokedWithResult(
didPop,
result,
);
}
void onShowMemberPage(int? mid) { void onShowMemberPage(int? mid) {
videoDetailController.childKey.currentState?.showBottomSheet( videoDetailController.childKey.currentState?.showBottomSheet(
shape: const RoundedRectangleBorder(), shape: const RoundedRectangleBorder(),