-
-
Notifications
You must be signed in to change notification settings - Fork 50
和SmartRefresher 一起使用会导致下拉刷新失效, listview改为shrinkWrap: false就可以,但是又会导致无法滑动 #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
试试custom_refresh_indicator |
好的 我试试 |
不行啊, 这个库没有加载更多,只有下拉刷新。 |
不支持 相关 如果是 |
好的 谢谢 我研究下 |
onRefresh可以在两个方向触发,只要判断是哪个方向触发的就知道是下拉还是上拉了 |
可以试试 pull_to_refresh_flutter3 把physics和scrollController 传给SmartRefresher就行了 |
Version
scrollview_observer: ^1.26.0
Platforms
dart
Device Model
android 13
flutter info
How to reproduce?
ListView 内容:
ListView.builder(
shrinkWrap: true,
padding: EdgeInsets.fromLTRB(12, 12, 12, 0),
itemCount: currentList.length + 1,
itemBuilder: (context, index) {
SmartRefresher层级:
children: [
SmartRefresher(
enablePullDown: true,
enablePullUp: true,
controller: _refreshController,
onRefresh: _onRefresh,
onLoading: _onLoading,
child: bodyContent(),
),
Logs
Example code (optional)
Contact
No response
The text was updated successfully, but these errors were encountered: