测试安卓修改app名称

This commit is contained in:
rang 2025-12-05 17:59:13 +08:00
parent 6b1edcb475
commit 6ceeb99d20
19 changed files with 1218 additions and 822 deletions

View file

@ -99,6 +99,7 @@ List<core.BookChapter> currentChapters(Ref ref) {
}
final index = book.chapters.indexOf(currentChapter);
final total = book.chapters.length;
return book.chapters
.sublist(index - 3, (total - 3) <= (index + 17) ? total : index + 17);
final start = index - 3 >= 0 ? index - 3 : 0;
final end = start + 20 <= total ? start + 20 : total;
return book.chapters.sublist(start, end);
}