功能优化

This commit is contained in:
DelLevin-Home
2026-05-24 14:18:36 +08:00
parent 674a981aac
commit 8b63aa482f
20 changed files with 1003 additions and 396 deletions

View File

@@ -53,7 +53,15 @@ class _BookTabPageState extends State<BookTabPage> {
}
if (books.isEmpty) {
return _buildEmptyState(context, provider.bookStatusIndex);
return RefreshIndicator(
onRefresh: () async => await provider.loadBooks(),
color: const Color(0xFF1A1A1A),
backgroundColor: Colors.white,
child: ListView(
physics: const AlwaysScrollableScrollPhysics(),
children: [_buildEmptyState(context, provider.bookStatusIndex)],
),
);
}
if (_layoutStyle == 1) {