关于listview.builder的支持问题
Closed this issue · 3 comments
zzzhhhhh001 commented
插件目前是支持listview.builder么,我跑例子把listview.separated改成listview.builder跳转的时候会有偏差 @LinXunFeng
LinXunFeng commented
ListView _buildListView() {
// return ListView.separated(
return ListView.builder(
padding: const EdgeInsets.only(top: 1000, bottom: 1000),
controller: scrollController,
itemBuilder: (ctx, index) {
return _buildListItemView(index);
},
// separatorBuilder: (ctx, index) {
// return _buildSeparatorView();
// },
itemCount: 500,
);
}
支持 ListView.builder
的,上述代码是将示例中 ListView.separated
调整为 ListView.builder
,测试正常
zzzhhhhh001 commented
listview.builder今天又重新跑了一下,确实好用了,但是发现一个问题,当给listview加上shirkWrap:true属性的时候就不会跳转了
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年11月2日(周三) 晚上6:34
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [LinXunFeng/flutter_scrollview_observer] 关于listview.builder的支持问题 (Issue #11)
ListView _buildListView() { // return ListView.separated( return ListView.builder( padding: const EdgeInsets.only(top: 1000, bottom: 1000), controller: scrollController, itemBuilder: (ctx, index) { return _buildListItemView(index); }, // separatorBuilder: (ctx, index) { // return _buildSeparatorView(); // }, itemCount: 500, ); }
支持 ListView.builder 的,上述代码是将示例中 ListView.separated 调整为 ListView.builder,测试正常
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
LinXunFeng commented
感谢反馈,请更新使用 1.6.1
版本
scrollview_observer: ^1.6.1