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

套件詳情v0.1.0+2

scroll_drag_detector

一個可以處理其內部滾動視圖的拖曳手勢檢測器。

AndroidiOSLinuxmacOSWebWindows
近 30 天下載
9040
喜歡數
10
Pub 分數
150

安裝套件

flutter pub add scroll_drag_detector

套件介紹

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

ScrollDragDetector 是一個 Flutter 套件,可在可滾動組件內實現精確的拖曳手勢檢測。它透過智慧區分滾動與拖曳手勢,解決了嵌套滾動檢視干擾拖曳互動的常見問題。專為具有層疊式可滾動內容的複雜 UI 所設計,即使嵌入在可滾動容器中,也能確保流暢且響應迅速的拖曳行為。此套件支援所有主要平台,並能與現有的 Flutter 專案無縫整合。

適用情境

  • 嵌套可滾動介面
  • 可滾動列表中的拖曳互動
  • 可拖動的自訂組件在滾動檢視中
  • 具有重疊可滾動區域的互動式佈局
  • 基於觸控的拖曳與放置體驗

主要特色

  • 優雅地處理滾動衝突
  • 檢測拖曳,不會與捲動產生干擾
  • 跨平台相容性
  • 與 Flutter 集成的最小設定
  • 支援水平與垂直拖曳

適合對象

  • 開發互動式可捲動 UI 的開發者
  • 需要精確拖曳手勢的應用程式
  • 基於複雜手勢的介面
  • Flutter 專案中的嵌套滾動檢視
  • 跨平台行動與網頁應用程式

使用建議

  • 可能需要針對高敏感度拖曳回應進行調校
  • 在捲動和拖曳行為分明時效果最佳
  • 對於簡單的非滾動拖曳場景不需要
  • 確保正確的元件層次結構以避免手勢衝突
  • 在所有目標平台進行測試,以確保行為一致

原始 README

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

Rivership Workspace

Powered by Mason melos Code Coverage Bluesky

Rivership is a set of opinionated tools that will get you shipping your Flutter app in no time!

This monorepo contains Rivership, and all its associated packages. Check out the packages/ directory to explore them, or jump straight to the Rivership README.

Package overview

Package pub.dev Description
rivership Pub Version An opinionated infrastructure package for use with hooks_riverpod.
rivership_test Pub Version A set of test utilities that are useful for testing riverpod apps
motor Pub Version A unified motion system for physics-based and duration-based animations.
springster Pub Version Spring animations and simulations, simplified.
heroine Pub Version The queen of hero transitions. Flutter's most addictive interactions.
snaptest Pub Version Snap photos in your widget tests.
scroll_drag_detector Pub Version A drag gesture detector that can deal with scroll views inside of it.
stupid_simple_sheet Pub Version A simple sheet widget for Flutter.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單