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

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

View File

@@ -375,12 +375,15 @@ class _PgcReviewChildPageState extends State<PgcReviewChildPage>
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Obx(
() => _controller.count.value == null
? const SizedBox.shrink()
: Text(
'${NumUtil.numFormat(_controller.count.value)}条点评',
style: const TextStyle(fontSize: 13),
),
() {
final count = _controller.count.value;
return count == null
? const SizedBox.shrink()
: Text(
'${NumUtil.numFormat(count)}条点评',
style: const TextStyle(fontSize: 13),
);
},
),
SizedBox(
height: 35,