优化打包体积

This commit is contained in:
DelLevin-Home
2026-07-04 16:41:34 +08:00
parent d7d2d236c3
commit 337590b374
29 changed files with 54 additions and 3956 deletions

View File

@@ -6,7 +6,6 @@ import '../utils/sync/webdav_service.dart';
import 'movies/movie_tab_page.dart';
import 'book/book_tab_page.dart';
import 'note/note_tab_page.dart';
import 'note_plus/note_plus_tab_page.dart';
import 'online_search/search_page.dart';
import 'online_search/online_search_page.dart';
import 'sync/webdav_sync_page.dart';
@@ -25,7 +24,6 @@ class _MainContentPageState extends State<MainContentPage> {
bool _showMovieTab = true;
bool _showBookTab = true;
bool _showNoteTab = true;
bool _showNotePlusTab = false;
late PageController _pageController;
bool _isTabTap = false;
@@ -49,7 +47,6 @@ class _MainContentPageState extends State<MainContentPage> {
_showMovieTab = _userPrefs.showMovieTab;
_showBookTab = _userPrefs.showBookTab;
_showNoteTab = _userPrefs.showNoteTab;
_showNotePlusTab = _userPrefs.showNotePlusTab;
});
}
@@ -64,7 +61,6 @@ class _MainContentPageState extends State<MainContentPage> {
if (_showMovieTab) tabs.add(_TabItem('影视', 0));
if (_showBookTab) tabs.add(_TabItem('阅读', 1));
if (_showNoteTab) tabs.add(_TabItem('笔记', 2));
if (_showNotePlusTab) tabs.add(_TabItem('Plus', 3));
return tabs;
}
@@ -138,7 +134,6 @@ class _MainContentPageState extends State<MainContentPage> {
case 0: return '影视';
case 1: return '阅读';
case 2: return '笔记';
case 3: return 'Note Plus';
default: return 'MookNote';
}
}
@@ -439,7 +434,6 @@ class _MainContentPageState extends State<MainContentPage> {
if (_showMovieTab) const MovieTabPage(),
if (_showBookTab) const BookTabPage(),
if (_showNoteTab) const NoteTabPage(),
if (_showNotePlusTab) const NotePlusTabPage(),
],
);
},
@@ -451,7 +445,6 @@ class _MainContentPageState extends State<MainContentPage> {
case '影视': return Icons.movie_outlined;
case '阅读': return Icons.menu_book_outlined;
case '笔记': return Icons.note_outlined;
case 'Plus': return Icons.edit_note;
default: return Icons.circle;
}
}