generated from dellevin/template
fix:
1.EPUB 搜索结果导航缺少越界保护 2.优化清空回收站时 N 条删除触发 N 次全量重载
This commit is contained in:
@@ -416,8 +416,12 @@ class _ReaderScreenState extends State<ReaderScreen>
|
||||
streamService: _streamService,
|
||||
onNavigate: (spineIndex, keyword, scrollRatio) {
|
||||
Navigator.pop(ctx);
|
||||
setState(() => currentSpineItemIndex = spineIndex);
|
||||
loadCarousel(restoreScrollRatio: scrollRatio);
|
||||
if (spineIndex >= 0 && spineIndex < bookSession.spine.length) {
|
||||
setState(() => currentSpineItemIndex = spineIndex);
|
||||
loadCarousel(restoreScrollRatio: scrollRatio);
|
||||
} else if (mounted) {
|
||||
ToastUtil.show(context, '章节位置无效');
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user