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

GitHub 儲存庫istornz/flutter_gaimon

flutter_gaimon

一個 Flutter 外掛程式,可完全支援自訂模式的觸覺反饋 📳

flutter_gaimon 專案封面
星標
42
分支
11
最近推送(UTC)
2026年8月30日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。


🧐 What is it ?

Gaimon is a very simple & easy to use plugin to include Haptic feedback in your app. It support custom pattern with .ahap file support.

👻 Getting started

  • Import the plugin.
import 'package:gaimon/gaimon.dart';
  • Trigger haptic 📳.
Gaimon.selection();
Gaimon.success();
Gaimon.error();
// [...]

Quite simple right ? 😎

📘 Documentation

Name Description Android iOS
.canSupportsHaptic() Check if haptic are supported or not ✅ ✅
.selection() Use it on a tap event ✅ ✅
.error() Use it when an error occur ✅ ✅
.success() Use it when a successful event occur ✅ ✅
.warning() Use it when a warning event occur ✅ ✅
.heavy() Huge feedback ✅ ✅
.medium() Medium feedback ✅ ✅
.light() Light feedback ✅ ✅
.rigid() A huge but speed feedback ✅ ✅
.soft() A medium but speed feedback ✅ ✅
.pattern(String data) Read a custom .ahap file (you can use Captain AHAP to generate file) ✅ ✅

❓ FAQ

  • Why custom pattern is not working on my iPhone?

    Custom vibration patterns is only supported on iPhone 8 and newer devices.

🎯 Roadmap

  • [x] Support pattern for Android (send .ahap file & convert it to waveform).
    • [x] Parse .ahab json contents
    • [x] Convert events in pattern to waveform
    • [x] Send waveform to android native plugin to simulate waveform
    • [x] Add support for parameters (https://developer.apple.com/documentation/corehaptics/representing-haptic-patterns-in-ahap-files)
    • [x] Add support for Parameter curves
    • [ ] Add support for AttackTime
    • [ ] Add support for DecayTime
    • [ ] Add support for Sustained Events
  • [ ] Support audio file to haptic feedback (generate correct feedback for audio file).

👥 Contributions

Contributions are welcome. Contribute by creating a PR or create an issue 🎉.

Dimitri Dessus GitHub avatar
GitHub 作者

Dimitri Dessus ↗

Mobile and web developer 👨‍💻

語言DartKotlinSwiftRubyObjective-C

分類

使用的依賴

依賴清單 3 項

  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^6.0.0

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗