Browse Source

Merge remote-tracking branch 'origin/remove_uniapp' into remove_uniapp

remove_uniapp
fmk 3 years ago
parent
commit
ecf8f577a8
  1. 16
      lib/community/community_course.dart

16
lib/community/community_course.dart

@ -131,8 +131,7 @@ class _CommunityCourse extends State<CommunityCourse>
refreshController.loadFailed();
}
});
if (baseData.isSuccess) {
if (baseData != null && baseData.isSuccess) {
if(categoryId == "") {
refreshController.refreshCompleted();
refreshController.loadComplete();
@ -200,6 +199,7 @@ class _CommunityCourse extends State<CommunityCourse>
_onRefresh(){
queryCourseBanner();
classListAsync();
collectionList();
}
@override
@ -213,10 +213,16 @@ class _CommunityCourse extends State<CommunityCourse>
child: SmartRefresher(
controller: refreshController,
enablePullDown: true,
enablePullUp: true,
enablePullUp: false,
header: MyHeader(),
onRefresh: _onRefresh,
onLoading: () {
footer: CustomFooter(
builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh:(){
setState(() {_onRefresh();
});
},
physics: BouncingScrollPhysics(),
scrollController: scrollController,

Loading…
Cancel
Save