mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 动态页无直播用户容错
This commit is contained in:
@@ -12,7 +12,8 @@ import 'package:PiliPalaX/utils/utils.dart';
|
||||
class UpPanel extends StatefulWidget {
|
||||
final FollowUpModel? upData;
|
||||
final ScrollController scrollController;
|
||||
const UpPanel(this.upData, this.scrollController, {Key? key}) : super(key: key);
|
||||
const UpPanel(this.upData, this.scrollController, {Key? key})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
State<UpPanel> createState() => _UpPanelState();
|
||||
@@ -37,9 +38,7 @@ class _UpPanelState extends State<UpPanel> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
upList = widget.upData!.upList!;
|
||||
if (widget.upData!.liveUsers != null) {
|
||||
liveList = widget.upData!.liveUsers!.items!;
|
||||
}
|
||||
liveList = widget.upData!.liveUsers?.items ?? [];
|
||||
// return const SizedBox();
|
||||
return CustomScrollView(
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
|
||||
Reference in New Issue
Block a user