mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-20 16:18:39 +00:00
@@ -17,7 +17,8 @@ class LiveFollowController
|
||||
|
||||
@override
|
||||
void checkIsEnd(int length) {
|
||||
if (count.value != null && length >= count.value!) {
|
||||
final count = this.count.value;
|
||||
if (count != null && length >= count) {
|
||||
isEnd = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,9 +25,10 @@ class _LiveFollowPageState extends State<LiveFollowPage> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Obx(
|
||||
() => Text(_controller.count.value != null
|
||||
? '${_controller.count.value}人正在直播'
|
||||
: '关注直播'),
|
||||
() {
|
||||
final count = _controller.count.value;
|
||||
return Text(count != null ? '$count人正在直播' : '关注直播');
|
||||
},
|
||||
),
|
||||
),
|
||||
body: SafeArea(
|
||||
|
||||
Reference in New Issue
Block a user