搜尋套件、儲存庫與 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 的開發者
  • 需要同步內容顯示的應用程式
  • 具有多個可滾動區段的 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.

所屬分類

原始碼儲存庫

使用此套件的專案