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

alphabet_list_scroll_view 封面
插件详情v2.0.0

alphabet_list_scroll_view

一个可自定义的 ListView,带有 A-Z 侧边滚动条,可快速跳转到选定字符的项目。

AndroidiOS
近 30 天下载
183
喜欢数
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 项

源码仓库

使用此插件的项目

暂无相关数据。