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

alphabet_list_scroll_view 封面
套件詳情v2.0.0

alphabet_list_scroll_view

一個可自訂的 ListView,帶有 A-Z 邊欄滾動條,可快速跳轉至所選字元的項目。

AndroidiOS
近 30 天下載
234
喜歡數
195
Pub 分數
120

安裝套件

flutter pub add alphabet_list_scroll_view

套件介紹

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

一個可自訂的 ListView,帶有 A-Z 邊欄滾動條,讓使用者能快速跳轉至選定字元開頭的項目。適合用於按字母順序排序的長清單,例如聯絡人目錄或字典。滾動條會動態標示目前區段,並平滑捲動至對應的清單區段。自訂選項包含滾動條樣式、調整間距,以及定義自訂排序邏輯。專為 Android 與 iOS 平台設計。

適用情境

  • 聯絡人列表導航
  • 詞典或術語表瀏覽
  • 按字母順序排列的產品列表
  • 使用者目錄搜尋
  • 長列表中的快速內容跳轉

主要特色

  • A-Z 邊欄滾動條
  • 平滑滾動到章節
  • 可自訂外觀
  • 支援動態資料
  • 適用於 Android 與 iOS

適合對象

  • 開發人員建構字母列表
  • 需要快速項目導航的應用
  • UI密集型應用程式,包含已排序的資料
  • 行動應用程式中的大型資料集
  • 尋求直覺式捲動控制的設計師

使用建議

  • 需要已排序的資料才能準確跳轉
  • 可能需要額外的邏輯來處理非英語字母文字
  • 滾動條的可見性取決於佈局約束
  • 大型列表帶來的效能影響
  • 對複雜滾動行為的自定義有限

原始 README

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

Apologize for the lack of updates as I do not have the bandwidth to work on this. But please check out this project https://github.com/flutterchina/azlistview if you need an A-Z list view that have more updates.

Alphabet List Scroll View

A customizable listview with A-Z side scrollbar to fast jump to the item of the selected character. Quick scroll through list via dragging through alphabets.

API

name type default description
strList List - List of Strings
itemBuilder itemBuilder(context, index) - itemBuilder similar to itemBuilder in ListView.builder
highlightTextStyle bool false highlight the focused pin box.
normalTextStyle Color Colors.black Set color of the focused pin box.
showPreview bool true show preview on screen
keyboardUsage bool true The alphabet list will be wrapped in scrollview.
indexedHeight double Function(int) query the height of widget with index
headerWidgetList List headers
AlphabetScrollListHeader
name type default description
widgetList List []
icon Icon Icon shows in the side alphabet list and the preview
indexedHeaderHeight double Function(int) query the height of header with index
drawing
drawing

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。