This commit is contained in:
DelLevin-Home
2026-07-14 00:36:44 +08:00
parent be72fd1286
commit 72937d20af
4 changed files with 27 additions and 1 deletions

View File

@@ -260,6 +260,8 @@ flutter pub get
```bash ```bash
# 构建 Release APK # 构建 Release APK
flutter build apk --release flutter build apk --release
# 构建windows版本
flutter build windows --release
# 只构建 arm64-v8a # 只构建 arm64-v8a
flutter build apk --release --target-platform android-arm64 flutter build apk --release --target-platform android-arm64
# 构建 App BundleGoogle Play # 构建 App BundleGoogle Play

View File

@@ -742,6 +742,12 @@ class _BookDetailPageState extends State<BookDetailPage> {
return Row(children: [ return Row(children: [
FilledButton.tonalIcon( FilledButton.tonalIcon(
onPressed: () { onPressed: () {
if (Platform.isWindows) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')),
);
return;
}
Navigator.push(context, MaterialPageRoute( Navigator.push(context, MaterialPageRoute(
builder: (_) => ReaderScreen( builder: (_) => ReaderScreen(
bookId: readerBook['id'] as String, bookId: readerBook['id'] as String,
@@ -1016,6 +1022,12 @@ class _BookDetailPageState extends State<BookDetailPage> {
return _buildFloatingButton( return _buildFloatingButton(
icon: Icons.auto_stories_outlined, icon: Icons.auto_stories_outlined,
onPressed: () { onPressed: () {
if (Platform.isWindows) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')),
);
return;
}
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute( MaterialPageRoute(

View File

@@ -93,6 +93,12 @@ class _EpubDetailPageState extends State<EpubDetailPage> {
} }
void _navigateToReader() { void _navigateToReader() {
if (Platform.isWindows) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('Windows 桌面客户端暂不支持 EPUB 阅读功能')),
);
return;
}
final coverPath = _linkedBookCoverPath ?? _book['cover_path'] as String?; final coverPath = _linkedBookCoverPath ?? _book['cover_path'] as String?;
Navigator.push( Navigator.push(
context, context,
@@ -807,6 +813,12 @@ class _EpubDetailPageState extends State<EpubDetailPage> {
} }
void _navigateToHighlight(Map<String, dynamic> highlight) { void _navigateToHighlight(Map<String, dynamic> 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 chapter = int.tryParse(highlight['chapter'] as String? ?? '') ?? 0;
final xpath = _extractStartXPath(highlight['cfi'] as String? ?? ''); final xpath = _extractStartXPath(highlight['cfi'] as String? ?? '');
final text = highlight['content'] as String? ?? ''; final text = highlight['content'] as String? ?? '';

View File

@@ -1,7 +1,7 @@
name: mooknote name: mooknote
description: "app for tracking movies, books, and notes" description: "app for tracking movies, books, and notes"
publish_to: 'none' publish_to: 'none'
version: 0.2.6 version: 0.2.7
environment: environment:
sdk: ^3.5.0 sdk: ^3.5.0