mod: 更换已废弃的onPopInvoked为onPopInvokedWithResult

This commit is contained in:
orz12
2024-09-08 19:09:55 +08:00
committed by bggRGjQaUbCoE
parent 4f611663cb
commit 078d9033b1
3 changed files with 7 additions and 7 deletions

View File

@@ -205,7 +205,7 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
),
PopScope(
canPop: plPlayerController?.isFullScreen.value != true,
onPopInvoked: (bool didPop) {
onPopInvokedWithResult: (bool didPop, Object? result) {
if (plPlayerController?.isFullScreen.value == true) {
plPlayerController!.triggerFullScreen(status: false);
}

View File

@@ -106,7 +106,7 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
Widget build(BuildContext context) {
return PopScope(
canPop: false,
onPopInvoked: (bool didPop) async {
onPopInvokedWithResult: (bool didPop, Object? result) async {
_mainController.onBackPressed(context);
},
child: Scaffold(

View File

@@ -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);
}