mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-25 04:45:54 +08:00
mod: 更换已废弃的onPopInvoked为onPopInvokedWithResult
This commit is contained in:
@@ -650,7 +650,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
(horizontalScreen ||
|
||||
MediaQuery.of(context).orientation ==
|
||||
Orientation.portrait),
|
||||
onPopInvoked: (bool didPop) {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (isFullScreen.value == true) {
|
||||
plPlayerController!
|
||||
.triggerFullScreen(status: false);
|
||||
@@ -777,7 +777,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
width: isFullScreen.value == true ? context.width : videoWidth,
|
||||
child: PopScope(
|
||||
canPop: isFullScreen.value != true,
|
||||
onPopInvoked: (bool didPop) {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (isFullScreen.value == true) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
}
|
||||
@@ -878,7 +878,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
: videoHeight,
|
||||
child: PopScope(
|
||||
canPop: isFullScreen.value != true,
|
||||
onPopInvoked: (bool didPop) {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (isFullScreen.value == true) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
}
|
||||
@@ -975,7 +975,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
width: isFullScreen.value == true ? context.width : videoWidth,
|
||||
child: PopScope(
|
||||
canPop: isFullScreen.value != true,
|
||||
onPopInvoked: (bool didPop) {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (isFullScreen.value == true) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
}
|
||||
@@ -1079,7 +1079,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
isFullScreen.value == true ? context.height : videoHeight,
|
||||
child: PopScope(
|
||||
canPop: isFullScreen.value != true,
|
||||
onPopInvoked: (bool didPop) {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (isFullScreen.value == true) {
|
||||
plPlayerController!.triggerFullScreen(status: false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user