Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

tiny fix in video page

Predidit0c2a2e148a11
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dart
index 3cd86611..cf523fc3 100644
--- a/lib/pages/player/player_item.dart
+++ b/lib/pages/player/player_item.dart
@@ -93,9 +93,11 @@ class _PlayerItemState extends State<PlayerItem>
}
hideTimer = Timer(const Duration(seconds: 4), () {
- setState(() {
- showPositioned = false;
- });
+ if (mounted) {
+ setState(() {
+ showPositioned = false;
+ });
+ }
hideTimer = null;
});
}
@@ -109,9 +111,11 @@ class _PlayerItemState extends State<PlayerItem>
}
mouseScrollerTimer = Timer(const Duration(seconds: 2), () {
- setState(() {
- showVolume = false;
- });
+ if (mounted) {
+ setState(() {
+ showVolume = false;
+ });
+ }
mouseScrollerTimer = null;
});
}
diff --git a/pubspec.lock b/pubspec.lock
index 9f86e302..cbb685c3 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -1383,7 +1383,7 @@ packages:
description:
path: "."
ref: main
- resolved-ref: aa3d50ec2da6802dd1f04407e249afcfa2fdebcd
+ resolved-ref: a32d483f4416628f1f6630592c0633f1f7c1d625
url: "https://github.com/Predidit/flutter-webview-windows.git"
source: git
version: "0.4.0"