refresherFooterWidget method
刷新底部指示器
Implementation
@override
Widget refresherFooterWidget() {
Widget footer;
footer = CustomFooter(builder: (context, loadStatus) {
if (loadStatus == LoadStatus.failed) {
footer = SilText('加载失败,请重试', textAlign: TextAlign.center);
} else if (loadStatus == LoadStatus.loading) {
footer = CupertinoActivityIndicator();
} else if (loadStatus == LoadStatus.noMore) {
footer = SilText(
'没有更多了',
textAlign: TextAlign.center,
style:
TextStyle(fontSize: 12, color: Color.fromRGBO(150, 151, 153, 1)),
);
} else {
return SilText('上拉加载更多',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12,
color: Color.fromRGBO(150, 151, 153, 1))); //ClassicFooter();
}
return Container(
height: 55.0,
child: Center(child: footer),
);
});
return footer;
}