generated from dellevin/template
v0.2.7
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -742,6 +742,12 @@ class _BookDetailPageState extends State<BookDetailPage> {
|
||||
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<BookDetailPage> {
|
||||
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(
|
||||
|
||||
@@ -93,6 +93,12 @@ class _EpubDetailPageState extends State<EpubDetailPage> {
|
||||
}
|
||||
|
||||
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<EpubDetailPage> {
|
||||
}
|
||||
|
||||
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 xpath = _extractStartXPath(highlight['cfi'] as String? ?? '');
|
||||
final text = highlight['content'] as String? ?? '';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user