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(); 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,

Loading…
Cancel
Save