native_shutter_sound 0.0.1
native_shutter_sound: ^0.0.1 copied to clipboard
A simple flutter plugin, that lets you play the native shutter sound for iOS and Android.
native_shutter_sound #
A simple flutter plugin, that lets you play the native shutter sound for iOS and Android.
This plugin can be useful if you develop a custom camera screen, and you want to play the default shutter sound you get when you take a photo using the camera app on the device.
Getting Started #
First, add native_shutter_sound
as a dependency in your pubspec.yaml file.
Example #
import 'package:native_shutter_sound/native_shutter_sound.dart';
...
ElevatedButton(
onPressed: () {
NativeShutterSound.play();
},
child: const Text('Play Sound'),
)
...