FLUTTER ECOSYSTEM

swipedetector

一个用于检测上滑、下滑、左滑、右滑的 Flutter 包。

最新版本
1.2.0
近 30 天下载
46
喜欢数
67
Pub 分数
5

Package Overview

基于插件公开资料生成的选型评价,仅供参考。

插件概览

swipedetector 是一个轻量级的 Flutter 包,旨在检测触摸设备上的方向性滑动手势——上、下、左、右。它通过提供简洁的 API 来监听滑动事件,简化了手势识别过程,无需复杂的自定义手势检测器。非常适合需要直观触摸导航的应用程序,例如滑块、卡片式界面或交互式教程。该包专注于滑动检测,因此高效且易于集成。

适合场景
  • Card flipping interfaces
  • Swipe-based navigation
  • Interactive onboarding screens
  • Gesture-driven game controls
  • Simple touch-based UI interactions
主要特点
  • Detects up, down, left, and right swipes
  • Minimal setup with clear API
  • Lightweight and focused functionality
  • No external dependencies
  • Works across all platforms
适合对象
  • Developers building touch-heavy UIs
  • Apps with swipe-based navigation
  • Simple gesture recognition needs
  • Prototyping interactive layouts
  • Educational or tutorial apps
使用建议
  • Does not support pinch or rotate gestures
  • Limited to basic swipe directions
  • No built-in animation support
  • Requires manual handling of swipe thresholds
  • Not suitable for complex multi-gesture scenarios
支持平台暂无数据

安装插件

flutter pub add swipedetector

所属分类

关联项目