mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user