mod: 为全屏和离开添加mounted限制

This commit is contained in:
orz12
2024-03-06 10:45:55 +08:00
parent 26ea932c73
commit b53b99de2f
2 changed files with 18 additions and 7 deletions

View File

@@ -73,7 +73,11 @@ class _HeaderControlState extends State<HeaderControl> {
.videoDetailCtr!.plPlayerController.isFullScreen
.listen((bool status) {
isFullScreen = status;
setState(() {});
/// TODO setState() called after dispose()
if (mounted) {
setState(() {});
}
});
}