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