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.