From ef09e1563550fd4f0ddacdaf6e3aa63044ccf7bc Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Tue, 12 Jan 2021 11:14:51 +0800 Subject: [PATCH] update ansu refresh --- lib/refresh/as_refresh.dart | 3 +++ 1 file changed, 3 insertions(+) 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,