update ansu refresh

null_safety
张萌 4 years ago
parent fae4a1e9b9
commit ef09e15635

@ -10,6 +10,7 @@ class ASRefresh extends StatefulWidget {
final bool firstRefresh; final bool firstRefresh;
final Widget emptyWidget; final Widget emptyWidget;
final Widget firstRefreshWidget; final Widget firstRefreshWidget;
final ScrollController scrollController;
ASRefresh({ ASRefresh({
Key key, Key key,
@required this.child, @required this.child,
@ -19,6 +20,7 @@ class ASRefresh extends StatefulWidget {
this.firstRefresh = true, this.firstRefresh = true,
this.emptyWidget, this.emptyWidget,
this.firstRefreshWidget, this.firstRefreshWidget,
this.scrollController,
}) : super(key: key); }) : super(key: key);
@override @override
@ -29,6 +31,7 @@ class _ASRefreshState extends State<ASRefresh> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return EasyRefresh( return EasyRefresh(
scrollController: widget.scrollController,
child: widget.child, child: widget.child,
onRefresh: widget.onRefresh, onRefresh: widget.onRefresh,
onLoad: widget.onLoad, onLoad: widget.onLoad,

Loading…
Cancel
Save