|
|
|
@ -26,7 +26,8 @@ class CommunityChildPage extends StatefulWidget {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class CommunityChildPageState extends State<CommunityChildPage> with AutomaticKeepAliveClientMixin { |
|
|
|
|
class CommunityChildPageState extends State<CommunityChildPage> |
|
|
|
|
with AutomaticKeepAliveClientMixin { |
|
|
|
|
RefreshController refreshController = RefreshController(); |
|
|
|
|
ApiService apiService; |
|
|
|
|
int pageNum = 1; |
|
|
|
@ -59,8 +60,8 @@ class CommunityChildPageState extends State<CommunityChildPage> with AutomaticKe
|
|
|
|
|
if (isLoadMore) { |
|
|
|
|
pageNum += 1; |
|
|
|
|
isLoadMore = false; |
|
|
|
|
} |
|
|
|
|
else pageNum = 1; |
|
|
|
|
} else |
|
|
|
|
pageNum = 1; |
|
|
|
|
BaseData<PageInfo<ComunityComment>> baseData = await apiService.trendList({ |
|
|
|
|
"mid": "", |
|
|
|
|
"onlyFollow": widget.typeStr == "关注" ? true : false, |
|
|
|
@ -125,13 +126,15 @@ class CommunityChildPageState extends State<CommunityChildPage> with AutomaticKe
|
|
|
|
|
isLoadMore = true; |
|
|
|
|
setState(() {}); |
|
|
|
|
}, |
|
|
|
|
child: (articles == null || articles.length == 0)? NoDataView( |
|
|
|
|
child: (articles == null || articles.length == 0) |
|
|
|
|
? NoDataView( |
|
|
|
|
src: "assets/image/guan_zhu.webp", |
|
|
|
|
isShowBtn: false, |
|
|
|
|
text: "目前暂无添加关注,可在推荐中关注自己喜欢的人哦~", |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
margin: EdgeInsets.only(top: 120.h, left: 60.w, right: 60.w), |
|
|
|
|
):ListView.builder( |
|
|
|
|
) |
|
|
|
|
: ListView.builder( |
|
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
return InkWell( |
|
|
|
|