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