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

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单