From 72937d20af8c835103fc9f0e01db04cd5b631034 Mon Sep 17 00:00:00 2001 From: DelLevin-Home Date: Tue, 14 Jul 2026 00:36:44 +0800 Subject: [PATCH] v0.2.7 --- README.md | 2 ++ lib/pages/book/book_detail_page.dart | 12 ++++++++++++ lib/pages/epub_reader/epub_detail_page.dart | 12 ++++++++++++ pubspec.yaml | 2 +- 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7788277..ff96692 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,8 @@ flutter pub get ```bash # 构建 Release APK flutter build apk --release +# 构建windows版本 +flutter build windows --release # 只构建 arm64-v8a flutter build apk --release --target-platform android-arm64 # 构建 App Bundle(Google Play) diff --git a/lib/pages/book/book_detail_page.dart b/lib/pages/book/book_detail_page.dart index 0ca69e5..848ab0a 100644 --- a/lib/pages/book/book_detail_page.dart +++ b/lib/pages/book/book_detail_page.dart @@ -742,6 +742,12 @@ class _BookDetailPageState extends State { return Row(children: [ FilledButton.tonalIcon( onPressed: () { + if (Platform.isWindows) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')), + ); + return; + } Navigator.push(context, MaterialPageRoute( builder: (_) => ReaderScreen( bookId: readerBook['id'] as String, @@ -1016,6 +1022,12 @@ class _BookDetailPageState extends State { return _buildFloatingButton( icon: Icons.auto_stories_outlined, onPressed: () { + if (Platform.isWindows) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')), + ); + return; + } Navigator.push( context, MaterialPageRoute( diff --git a/lib/pages/epub_reader/epub_detail_page.dart b/lib/pages/epub_reader/epub_detail_page.dart index 8e4e9c0..c43b3e9 100644 --- a/lib/pages/epub_reader/epub_detail_page.dart +++ b/lib/pages/epub_reader/epub_detail_page.dart @@ -93,6 +93,12 @@ class _EpubDetailPageState extends State { } void _navigateToReader() { + if (Platform.isWindows) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')), + ); + return; + } final coverPath = _linkedBookCoverPath ?? _book['cover_path'] as String?; Navigator.push( context, @@ -807,6 +813,12 @@ class _EpubDetailPageState extends State { } void _navigateToHighlight(Map highlight) { + if (Platform.isWindows) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')), + ); + return; + } final chapter = int.tryParse(highlight['chapter'] as String? ?? '') ?? 0; final xpath = _extractStartXPath(highlight['cfi'] as String? ?? ''); final text = highlight['content'] as String? ?? ''; diff --git a/pubspec.yaml b/pubspec.yaml index 121048f..0e96cca 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: mooknote description: "app for tracking movies, books, and notes" publish_to: 'none' -version: 0.2.6 +version: 0.2.7 environment: sdk: ^3.5.0