diff --git a/lib/refresh/as_refresh.dart b/lib/refresh/as_refresh.dart index 6ec28e7..7d2c57c 100644 --- a/lib/refresh/as_refresh.dart +++ b/lib/refresh/as_refresh.dart @@ -10,6 +10,7 @@ class ASRefresh extends StatefulWidget { final bool firstRefresh; final Widget emptyWidget; final Widget firstRefreshWidget; + final ScrollController scrollController; ASRefresh({ Key key, @required this.child, @@ -19,6 +20,7 @@ class ASRefresh extends StatefulWidget { this.firstRefresh = true, this.emptyWidget, this.firstRefreshWidget, + this.scrollController, }) : super(key: key); @override @@ -29,6 +31,7 @@ class _ASRefreshState extends State { @override Widget build(BuildContext context) { return EasyRefresh( + scrollController: widget.scrollController, child: widget.child, onRefresh: widget.onRefresh, onLoad: widget.onLoad,