基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
migrate windows fullscreen impel to window_manager
Predidita84a0b4bfbf6
diff --git a/lib/utils/utils.dart b/lib/utils/utils.dartindex 4a885ac4..4afff914 100644--- a/lib/utils/utils.dart+++ b/lib/utils/utils.dart@@ -348,6 +348,7 @@ class Utils {return false;}+ // Deprecatedstatic Future<void> enterWindowsFullscreen() async {if (Platform.isWindows) {const platform = MethodChannel('com.predidit.kazumi/intent');@@ -359,6 +360,7 @@ class Utils {}}+ // Deprecatedstatic Future<void> exitWindowsFullscreen() async {if (Platform.isWindows) {const platform = MethodChannel('com.predidit.kazumi/intent');@@ -372,11 +374,11 @@ class Utils {// 进入全屏显示static Future<void> enterFullScreen({bool lockOrientation = true}) async {- if (Platform.isWindows) {- await enterWindowsFullscreen();- return;- }- if (Platform.isLinux || Platform.isMacOS) {+ // if (Platform.isWindows) {+ // await enterWindowsFullscreen();+ // return;+ // }+ if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {await windowManager.setFullScreen(true);return;}@@ -397,10 +399,10 @@ class Utils {//退出全屏显示static Future<void> exitFullScreen({bool lockOrientation = true}) async {- if (Platform.isWindows) {- await exitWindowsFullscreen();- }- if (Platform.isLinux || Platform.isMacOS) {+ // if (Platform.isWindows) {+ // await exitWindowsFullscreen();+ // }+ if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {await windowManager.setFullScreen(false);}late SystemUiMode mode = SystemUiMode.edgeToEdge;