Skip to content

和SmartRefresher 一起使用会导致下拉刷新失效, listview改为shrinkWrap: false就可以,但是又会导致无法滑动 #124

Closed
@lfclfc

Description

@lfclfc

Version

scrollview_observer: ^1.26.0

Platforms

dart

Device Model

android 13

flutter info

flutter doctor -v i

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions