|
|
@ -24,7 +24,7 @@ class LiveStreamPage extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _LiveStreamPageState extends State<LiveStreamPage>
|
|
|
|
class _LiveStreamPageState extends State<LiveStreamPage>
|
|
|
|
with AutomaticKeepAliveClientMixin, TickerProviderStateMixin {
|
|
|
|
with TickerProviderStateMixin {
|
|
|
|
List<LiveAttentionListModel> _liveAttentionListModels = [];
|
|
|
|
List<LiveAttentionListModel> _liveAttentionListModels = [];
|
|
|
|
List<LiveListModel> _liveListModels = [];
|
|
|
|
List<LiveListModel> _liveListModels = [];
|
|
|
|
int _livePage = 1;
|
|
|
|
int _livePage = 1;
|
|
|
@ -52,7 +52,6 @@ class _LiveStreamPageState extends State<LiveStreamPage>
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
super.build(context);
|
|
|
|
|
|
|
|
return NestedScrollView(
|
|
|
|
return NestedScrollView(
|
|
|
|
headerSliverBuilder: (context, innerBoxIsScrolled) {
|
|
|
|
headerSliverBuilder: (context, innerBoxIsScrolled) {
|
|
|
|
return [
|
|
|
|
return [
|
|
|
@ -311,9 +310,16 @@ class _LiveStreamPageState extends State<LiveStreamPage>
|
|
|
|
CRoute.push(
|
|
|
|
CRoute.push(
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
LiveStreamViewPage(id: model.id),
|
|
|
|
LiveStreamViewPage(id: model.id),
|
|
|
|
);
|
|
|
|
).then((value) {
|
|
|
|
|
|
|
|
_liveListController.requestRefresh();
|
|
|
|
|
|
|
|
_liveAttentionController.requestRefresh();
|
|
|
|
|
|
|
|
});
|
|
|
|
else
|
|
|
|
else
|
|
|
|
CRoute.push(context, LivePlaybackViewPage(id: model.id));
|
|
|
|
CRoute.push(context, LivePlaybackViewPage(id: model.id))
|
|
|
|
|
|
|
|
.then((value) {
|
|
|
|
|
|
|
|
_liveListController.requestRefresh();
|
|
|
|
|
|
|
|
_liveAttentionController.requestRefresh();
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
@ -514,7 +520,4 @@ class _LiveStreamPageState extends State<LiveStreamPage>
|
|
|
|
.map((e) => LiveListModel.fromJson(e))
|
|
|
|
.map((e) => LiveListModel.fromJson(e))
|
|
|
|
.toList();
|
|
|
|
.toList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
|
|
bool get wantKeepAlive => true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|