mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -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();
|
||||||
|
|||||||
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user