Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 21:13:16 +08:00
parent 55bed2e830
commit e770e39c8f
59 changed files with 1388 additions and 1265 deletions

View File

@@ -27,7 +27,8 @@ class NoteListPageCtr
@override
void checkIsEnd(int length) {
if (count.value != -1 && length >= count.value) {
final count = this.count.value;
if (count != -1 && length >= count) {
isEnd = true;
}
}

View File

@@ -64,10 +64,10 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
titleSpacing: 16,
toolbarHeight: 45,
backgroundColor: Colors.transparent,
title: Obx(
() => Text(
'笔记${_controller.count.value == -1 ? '' : '(${_controller.count.value})'}'),
),
title: Obx(() {
final count = _controller.count.value;
return Text('笔记${count == -1 ? '' : '($count)'}');
}),
bottom: PreferredSize(
preferredSize: const Size.fromHeight(1),
child: Divider(