epub阅读添加搜索

This commit is contained in:
DelLevin-Home
2026-07-01 05:03:58 +08:00
parent 0af1af7f1a
commit d5bec0fe9b
7 changed files with 573 additions and 9 deletions

View File

@@ -78,6 +78,10 @@ class ReaderWebViewController {
Future<void> waitForEvents(List<int> tokens, [int timeoutMs = 10000]) async {
await _webViewState?._bridge.waitForEvents(tokens, timeoutMs);
}
Future<dynamic> runJavaScriptReturningResult(String js) async {
return await _webViewState?._controller?.evaluateJavascript(source: js);
}
}
final InAppWebViewSettings defaultSettings = InAppWebViewSettings(