搜尋套件、儲存庫與 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.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。