提交 fe4ff12c authored 作者: 张国庆's avatar 张国庆

修改返回类型 msg
上级 ef6733d2
...@@ -121,6 +121,11 @@ class _BaseListWidgetState extends State<BaseListWidget> { ...@@ -121,6 +121,11 @@ class _BaseListWidgetState extends State<BaseListWidget> {
if (!mounted) { if (!mounted) {
return; return;
} }
if (_page == 1) {
_controller.finishRefresh();
} else {
_controller.finishLoad();
}
} }
/// Build header. /// Build header.
...@@ -211,7 +216,7 @@ class BaseListController { ...@@ -211,7 +216,7 @@ class BaseListController {
} }
typedef SuccessCallback = Function(List? list); typedef SuccessCallback = Function(List? list);
typedef ErrorCallback = Function(dynamic code, String msg); typedef ErrorCallback = Function(dynamic code, String? msg);
typedef RequestDataCallback = Function( typedef RequestDataCallback = Function(
int page, int pageSize, SuccessCallback success, ErrorCallback error); int page, int pageSize, SuccessCallback success, ErrorCallback error);
typedef ItemBuilder = Function(BuildContext context, int index, dynamic item); typedef ItemBuilder = Function(BuildContext context, int index, dynamic item);
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论