搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目