搜尋套件、儲存庫與 APP 分類

套件詳情v0.3.8

scrollable_positioned_list

一個帶有輔助方法的清單,可程式設計地捲動到項目。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
69.7萬
喜歡數
2000
Pub 分數
140

安裝套件

flutter pub add scrollable_positioned_list

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個擴展 ListView 的 Flutter 套件,提供用於程式化滾動到特定項目的實用方法。它提供對捲動位置的精確控制,非常適合需要根據使用者動作或狀態變更導航至特定清單項目之情境。此套件支援所有主要平台,並能與現有的可捲動組件無縫整合。透過實現順暢、目標明確的捲動,它提升了動態清單(例如搜尋結果或導航選單)的易用性。

適用情境

  • 滾動到特定清單項目
  • 在大型列表中導航
  • 實現搜尋結果強調
  • 建立鍵盤驅動的清單導航
  • 建構可存取的清單介面

主要特色

  • 程式化滾動到項目功能
  • 具有可自定偏移量的平滑捲動
  • 支援垂直與水平清單
  • 與 ScrollController 的整合
  • 高效處理大型資料集

適合對象

  • 開發動態清單的開發者
  • 需要精確滾動控制的應用
  • 以可存取性為導向的使用者介面
  • 搜尋或篩選介面
  • 自訂導航模式

使用建議

  • 需要手動管理滾動位置
  • 複雜用例可能需要額外的狀態處理
  • 不適合用於簡單的靜態清單
  • 效能取決於清單大小與渲染複雜度
  • 僅限可滾動組件上下文

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Build

Flutter widgets

This repository contains the source code for various Flutter widgets that are developed by Google but not by the core Flutter team.

The product and source code here are neither endorsed by Google nor the Flutter team. They are mainly made available as a reference. Support is best-effort.

Packages

Package Description Version
flutter_simple_treeview A widget, that visualises a tree structure, where a node can be any widget. pub package
linked_scroll_controller A scroll controller that allows two or more scroll views to be in sync. pub package
scrollable_positioned_list A list with helper methods to programmatically scroll to an item. pub package
self_storing_input A set of input widgets that automatically save and load the entered value to a data store. pub package
visibility_detector A widget that detects the visibility of its child and notifies a callback. pub package

Issues

Please file any issues, bugs, or feature requests in the this repo.

Contributing

If you wish to contribute a change to any of the existing widgets in this repo, please review our contribution guide, and send a pull request.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案