基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
remove webview_floating
Prediditf30d50ee1c15
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dartindex 5ba7169c..9a38aeb5 100644--- a/lib/pages/video/video_page.dart+++ b/lib/pages/video/video_page.dart@@ -1,3 +1,4 @@+import 'dart:io';import 'package:flutter/material.dart';import 'package:flutter_modular/flutter_modular.dart';import 'package:kazumi/pages/info/info_controller.dart';@@ -36,7 +37,8 @@ class _VideoPageState extends State<VideoPage>body: Column(children: [SizedBox(- height: MediaQuery.of(context).size.width * 9 / 16,+ height: (Platform.isAndroid || Platform.isIOS) ? MediaQuery.of(context).size.width * 9 / 16 : 400,+ width: (Platform.isAndroid || Platform.isIOS) ? null : 400,child: const WebviewItem(),),TabBar(diff --git a/lib/pages/webview/webview_controller.dart b/lib/pages/webview/webview_controller.dartindex 1d558001..2513a82d 100644--- a/lib/pages/webview/webview_controller.dart+++ b/lib/pages/webview/webview_controller.dart@@ -24,7 +24,7 @@ class WebviewItemController {});await webviewController.loadRequest(Uri.parse(url));- Timer.periodic(Duration(seconds: 1), (timer) {+ Timer.periodic(const Duration(seconds: 1), (timer) {if (isIframeLoaded) {timer.cancel();} else {@@ -34,7 +34,9 @@ class WebviewItemController {}unloadPage() async {- await webviewController.removeJavaScriptChannel('JSBridgeDebug').catchError((_) {});+ await webviewController+ .removeJavaScriptChannel('JSBridgeDebug')+ .catchError((_) {});await webviewController.loadRequest(Uri.parse('about:blank'));await webviewController.clearCache();isIframeLoaded = false;