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

插件详情v0.2.0

linked_scroll_controller

一个滚动控制器,可使两个或多个滚动视图保持同步。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
18.7万
喜欢数
335
Pub 分数
130

安装插件

flutter pub add linked_scroll_controller

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

linked_scroll_controller 包提供了一个滚动控制器,可同步两个或多个滚动视图的滚动行为。当一个滚动视图被滚动时,其他视图会自动跟随,保持所有链接视图之间的位置一致。这在创建协调的用户界面(如并排列表、双面板布局或同步内容窗格)时特别有用。该包支持所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,确保跨平台一致性。它与 Flutter 现有的滚动系统无缝集成,设置简单。

适合场景

  • 同步多个列表视图
  • 创建双窗格布局
  • 对齐分屏中的滚动位置
  • 构建响应式仪表板面板
  • 在数据比较界面中启用协调滚动

主要特点

  • 实时滚动同步
  • 支持多个滚动视图
  • 跨平台兼容性
  • 最小配置要求
  • 与 ListView、ScrollViewController 和自定义可滚动组件兼容

适合对象

  • 开发复杂滚动界面的开发者
  • 需要同步内容显示的应用程序
  • 具有多个可滚动区域的 UI
  • 实现响应式布局的设计人员
  • 面向多平台部署的团队

使用建议

  • 需要仔细处理滚动方向和轴对齐
  • 在大数据集上可能影响性能
  • 不适合独立滚动行为
  • 需要适当的状态管理以避免冲突
  • 仅限垂直或水平同步,不能同时进行

原始 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.

所属分类

源码仓库

使用此插件的项目