windows版本初步完成

This commit is contained in:
DelLevin-Home
2026-07-13 19:39:01 +08:00
parent 121cbf8b0b
commit 6c30026e32
37 changed files with 5583 additions and 624 deletions

View File

@@ -1,8 +1,8 @@
import 'dart:io';
import 'dart:typed_data';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:path_provider/path_provider.dart';
import 'epub_stream_service.dart';
import '../../utils/image_path_helper.dart';
/// Simple file reference with path and optional anchor.
class Href {
@@ -34,8 +34,8 @@ class EpubWebViewHandler {
static Future<String> getDocumentsPath() async {
if (_documentsPath != null) return _documentsPath!;
final dir = await getApplicationDocumentsDirectory();
_documentsPath = '${dir.path}/';
final appDirPath = await ImagePathHelper.getAppDir();
_documentsPath = '$appDirPath/';
return _documentsPath!;
}