mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
upgrade dep
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -124,7 +124,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
videoPlayerServiceHandler.onVideoDetailDispose(heroTag);
|
||||
_listener?.cancel();
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
ScreenBrightness().resetApplicationScreenBrightness();
|
||||
ScreenBrightness.instance.resetApplicationScreenBrightness();
|
||||
PlPlayerController.setPlayCallBack(null);
|
||||
_liveRoomController
|
||||
..msgStream?.close()
|
||||
|
||||
@@ -243,17 +243,19 @@ class _SavePanelState extends State<SavePanel> {
|
||||
if (isShare) {
|
||||
Get.back();
|
||||
SmartDialog.dismiss();
|
||||
Share.shareXFiles(
|
||||
[
|
||||
XFile.fromData(
|
||||
pngBytes,
|
||||
name: picName,
|
||||
mimeType: 'image/png',
|
||||
),
|
||||
],
|
||||
sharePositionOrigin: await Utils.isIpad()
|
||||
? Rect.fromLTWH(0, 0, Get.width, Get.height / 2)
|
||||
: null,
|
||||
SharePlus.instance.share(
|
||||
ShareParams(
|
||||
files: [
|
||||
XFile.fromData(
|
||||
pngBytes,
|
||||
name: picName,
|
||||
mimeType: 'image/png',
|
||||
),
|
||||
],
|
||||
sharePositionOrigin: await Utils.isIpad()
|
||||
? Rect.fromLTWH(0, 0, Get.width, Get.height / 2)
|
||||
: null,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
final result = await SaverGallery.saveImage(
|
||||
|
||||
@@ -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