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