mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 18:20:10 +08:00
upgrade dep
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -325,7 +325,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
if (!Get.previousRoute.startsWith('/video')) {
|
||||
ScreenBrightness().resetApplicationScreenBrightness();
|
||||
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||
PlPlayerController.setPlayCallBack(null);
|
||||
}
|
||||
videoDetailController.positionSubscription?.cancel();
|
||||
@@ -361,7 +361,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
|
||||
ScreenBrightness().resetApplicationScreenBrightness();
|
||||
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||
|
||||
videoDetailController.positionSubscription?.cancel();
|
||||
videoIntroController.canelTimer();
|
||||
@@ -405,14 +405,14 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
videoDetailController.brightness!,
|
||||
);
|
||||
if (videoDetailController.brightness != -1.0) {
|
||||
ScreenBrightness().setApplicationScreenBrightness(
|
||||
ScreenBrightness.instance.setApplicationScreenBrightness(
|
||||
videoDetailController.brightness!,
|
||||
);
|
||||
} else {
|
||||
ScreenBrightness().resetApplicationScreenBrightness();
|
||||
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||
}
|
||||
} else {
|
||||
ScreenBrightness().resetApplicationScreenBrightness();
|
||||
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||
}
|
||||
}
|
||||
super.didPopNext();
|
||||
|
||||
@@ -888,22 +888,24 @@ class HeaderControlState extends State<HeaderControl> {
|
||||
SmartDialog.showToast('已保存');
|
||||
}
|
||||
} catch (e) {
|
||||
Share.shareXFiles(
|
||||
[
|
||||
XFile.fromData(
|
||||
res.data,
|
||||
name: name,
|
||||
mimeType: 'application/json',
|
||||
),
|
||||
],
|
||||
sharePositionOrigin: await Utils.isIpad()
|
||||
? Rect.fromLTWH(
|
||||
0,
|
||||
0,
|
||||
Get.width,
|
||||
Get.height / 2,
|
||||
)
|
||||
: null,
|
||||
SharePlus.instance.share(
|
||||
ShareParams(
|
||||
files: [
|
||||
XFile.fromData(
|
||||
res.data,
|
||||
name: name,
|
||||
mimeType: 'text/plain',
|
||||
),
|
||||
],
|
||||
sharePositionOrigin: await Utils.isIpad()
|
||||
? Rect.fromLTWH(
|
||||
0,
|
||||
0,
|
||||
Get.width,
|
||||
Get.height / 2,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user