云备份界面优化

This commit is contained in:
DelLevin-Home
2026-07-03 01:33:55 +08:00
parent 48c1b05410
commit 25d2efda6a
9 changed files with 305 additions and 297 deletions

View File

@@ -44,7 +44,7 @@ class _BookTabPageState extends State<BookTabPage> {
}
}
static const _statusMap = {0: 'read', 1: 'reading', 2: 'want_to_read'};
static const _statusMap = {0: 'read', 1: 'reading', 2: 'want_to_read', 3: 'abandoned'};
@override
void initState() {
@@ -166,7 +166,7 @@ class _BookTabPageState extends State<BookTabPage> {
final direction = (velocity ?? 0) > 0 ? -1 : 1; // 右滑→上一个,左滑→下一个
final provider = context.read<AppProvider>();
final currentIndex = provider.bookStatusIndex;
final newIndex = (currentIndex + direction + 3) % 3;
final newIndex = (currentIndex + direction + 4) % 4;
setState(() => _dragDelta = 0.0);
provider.setBookStatusIndex(newIndex);
},
@@ -297,7 +297,7 @@ class _BookTabPageState extends State<BookTabPage> {
final colors = Theme.of(context).colorScheme;
final provider = context.read<AppProvider>();
final isWallMode = provider.bookshelfMode;
final statusText = isWallMode ? '' : ['已读', '在读', '想读'][statusIndex];
final statusText = isWallMode ? '' : ['已读', '在读', '想读', '弃读'][statusIndex];
return Center(child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
Container(width: 80, height: 80,
decoration: BoxDecoration(color: colors.surfaceContainerHighest, borderRadius: BorderRadius.circular(20)),