basic_beep 1.0.3 copy "basic_beep: ^1.0.3" to clipboard
basic_beep: ^1.0.3 copied to clipboard

A lite module to play system sounds and beep for flutter mobile and web

basic_beep #

A basic system beeping sound package for flutter

import 'package:basic_beep/basic_beep.dart';
//import if needed
import 'package:basic_beep/data/models/android_sound_ids.dart';
import 'package:basic_beep/data/models/ios_sound_ids.dart';


RaisedButton( child: Text("Beep Success"), onPressed: ()=> BasicBeep.beep()),
RaisedButton( child: Text("Beep Fail"), onPressed: ()=> BasicBeep.beep(false)),
RaisedButton( child: Text("Beep Android Custom"), onPressed: ()=> BasicBeep.playSysSound(AndroidSoundIDs.TONE_CDMA_ABBR_ALERT)),
RaisedButton( child: Text("Beep something"), onPressed: ()=> BasicBeep.playSysSound(41)),
RaisedButton( child: Text("Beep iOS Custom"), onPressed: ()=> BasicBeep.playSysSound(iOSSoundIDs.AudioToneBusy)),

License #

This project is licensed under the BSD 3-Clause License.

It includes code derived from flutter_beep
by trietho, also licensed under the BSD 3-Clause License.
Original source © trietho. Used and adapted in accordance with the license terms.

3
likes
140
points
419
downloads

Publisher

unverified uploader

Weekly Downloads

A lite module to play system sounds and beep for flutter mobile and web

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on basic_beep

Packages that implement basic_beep