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

套件詳情v0.2.1

simple_gesture_detector

易於使用、可靠且輕量級的 Flutter 應用程式觸控偵測器。提供簡單的 API 來回應基本觸控動作。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
75.2萬
喜歡數
56
Pub 分數
140

安裝套件

flutter pub add simple_gesture_detector

套件介紹

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

一個輕量級且可靠的 Flutter 套件,用於偵測基本觸控手勢,例如點擊、長按和拖曳。它提供簡單直覺的 API,讓您能輕鬆回應使用者互動,無需撰寫冗長程式碼。適合尋求跨平台應用中簡易手勢處理的開發者。此套件支援所有主要平台,包含 Android、iOS、Web、macOS、Windows 與 Linux。

適用情境

  • 處理 UI 組件中的點擊事件
  • 實現長按操作
  • 新增拖曳與放置功能
  • 建構互動式小部件
  • 建立響應式觸控介面

主要特色

  • 最小 API 表面
  • 跨平台相容性
  • 輕量級佔用
  • 可靠的觸控手勢識別
  • 與現有組件的輕鬆整合

適合對象

  • 初學者 Flutter 開發者
  • 簡單手勢需要
  • 對效能敏感的應用程式
  • 快速原型設計
  • 針對多個平台的應用程式

使用建議

  • 僅限基本手勢
  • 無進階手勢自訂
  • 不適用於複雜的多點觸控場景
  • 依賴外部維護
  • 缺少內建動畫支援

原始 README

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

Simple Gesture Detector

Pub Package

Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.

Features

  • Detect swipe gesture - and expose simple callbacks
  • Detect tap gestures (onTap, onDoubleTap, onLongPress)
  • Configure gesture recognition

Usage

Make sure to check out example project. For additional info please refer to API docs.

Installation

Add to pubspec.yaml:

dependencies:
  simple_gesture_detector: ^0.2.1

所屬分類

原始碼儲存庫

使用此套件的專案