buildSmartRefresher method
Implementation
Widget buildSmartRefresher(Widget child) {
return SmartRefresher(
header: const MaterialClassicHeader(
color: AppTheme.colorHomeTabIndicator,
distance: 44.0,
),
enablePullUp: !isShowEmpty,
controller: refreshController,
footer: ClassicFooter(
canLoadingText: Strings.refreshFooterIdle.tr,
loadingText: Strings.refreshFooterLoading.tr,
failedText: Strings.refreshFooterFailed.tr,
noDataText: Strings.refreshFooterNoData.tr,
idleText: Strings.refreshFooterIdle.tr,
),
onRefresh: onRefresh,
onLoading: onLoading,
child: child
);
}