# Flutter

Our Flutter plugin allows playback of custom haptics on both Android and iOS in a cross-platform manner.

Find it on pub.dev and on GitHub for the full API reference.

# Usage

After exporting for iOS, add the exported files to your iOS application's main bundle. Similarly, after exporting for Android, move the exported files to your application's assets directory.

In your code, you can then easily trigger the haptic feedback:

import 'package:hapticlabs_player/hapticlabs_player.dart';

final hapticlabsPlayer = HapticlabsPlayer();

hapticlabsPlayer.playHaptics(
    iosPath: 'Exported.ahap',
    androidPath: 'Exported.hac'
);

A full working example for the usage can be found in our repo.