WIP: markdown reader, data migration, 编辑器增强等

This commit is contained in:
DelLevin-Home
2026-05-22 03:24:17 +08:00
parent edf35c5844
commit 8d5e1642d6
19 changed files with 2371 additions and 1177 deletions

View File

@@ -30,6 +30,9 @@ class AppProvider extends ChangeNotifier {
// 当前底部导航选中的索引 (0: 主页1: 新增2: 我的)
int _bottomNavIndex = 0;
// 底部导航栏是否可见
bool _bottomNavVisible = true;
// 观影选中的状态 (0: 已看1: 想看2: 在看)
int _movieStatusIndex = 0;
@@ -71,6 +74,7 @@ class AppProvider extends ChangeNotifier {
int get movieStatusIndex => _movieStatusIndex;
int get bookStatusIndex => _bookStatusIndex;
bool get drawerOpen => _drawerOpen;
bool get bottomNavVisible => _bottomNavVisible;
List<Movie> get movies => _movies;
List<Book> get books => _books;
List<Note> get notes => _notes;
@@ -93,9 +97,17 @@ class AppProvider extends ChangeNotifier {
void setBottomNavIndex(int index) {
_bottomNavIndex = index;
_bottomNavVisible = true; // 切换页面时自动显示导航栏
notifyListeners();
}
void setBottomNavVisible(bool visible) {
if (_bottomNavVisible != visible) {
_bottomNavVisible = visible;
notifyListeners();
}
}
void setMovieStatusIndex(int index) {
_movieStatusIndex = index;
notifyListeners();