搜索插件、代码仓与 APP 分类

bidirectional_listview 封面
插件详情v1.0.3

bidirectional_listview

具有固定项目数量和滚动边界、可上下滚动并懒加载的 ListView。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
187
喜欢数
29
Pub 分数
140

安装插件

flutter pub add bidirectional_listview

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,扩展了 ListView 的功能,支持双向滚动以及上下两个方向的延迟加载。它保持固定数量的可见项目,并尊重滚动边界,非常适合在性能和内存效率至关重要的大型数据集场景中使用。该包旨在通过最小的资源消耗,在导航大量内容时提供流畅、响应迅速的用户体验。

适合场景

  • 需要无限滚动的大数据集
  • 列表中的双向导航
  • 内存高效的长列表渲染
  • 实时数据流,支持动态更新
  • 内容密集型应用,如聊天或新闻动态

主要特点

  • 支持上下滚动
  • 滚动时固定项目数量
  • 延迟加载项目
  • 尊重滚动边界
  • 针对性能和内存进行了优化

适合对象

  • 开发高性能列表界面的开发者
  • 包含大量可滚动内容的应用
  • 需要高效数据加载的项目
  • 注重在多个平台上实现流畅用户体验的团队
  • 寻求轻量级分页解决方案的用户

使用建议

  • 需要仔细管理滚动位置
  • 可能需要自定义逻辑来处理特殊情况
  • 不适合高度动态的项目计数
  • 有限的内置自定义选项
  • 最好与稳定的数据源一起使用

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Bidirectional ListView

Example

ListView with items that can be scrolled and lazy loaded in up and down direction with a fixed item count and scroll boundaries.

With this library the following is possible:

  • ListView can be scrolled in up (negative indices) and down (positive indices) direction
  • Lazy loading is possible for up and down direction
  • Scroll boundaries for top and bottom
  • ItemCount for negative and positive indices can/must be set

Limitations:

  • Min- and MaxExtents for scrolling must be set manually

Quick Usage

Replace your existing ListView with BidirectionalListView. Builder pattern must be used because of its infinite nature.

A complete tutorial how to use BidirectionalListView can be found here: Tutorial

Please refer to the example for usage: Quick-Link

Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull Request are also welcome.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。