flutter_beep_new 1.2.0 copy "flutter_beep_new: ^1.2.0" to clipboard
flutter_beep_new: ^1.2.0 copied to clipboard

Play system beeps and tones on Android and iOS without bundling sound files. Lightweight fork of flutter_beep with modern Gradle, Kotlin, and Swift Package Manager support.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_beep_new/flutter_beep_new.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Flutter Beep Plugin example app'),
        ),
        body: Center(
          child: Column(
            children: <Widget>[
              ElevatedButton(
                child: Text("Beep Success"),
                onPressed: () => FlutterBeep.beep(),
              ),
              ElevatedButton(
                child: Text("Beep Fail"),
                onPressed: () => FlutterBeep.beep(false),
              ),
              ElevatedButton(
                child: Text("Beep Android Custom"),
                onPressed: () => FlutterBeep.playSysSound(
                    AndroidSoundIDs.TONE_CDMA_ABBR_ALERT),
              ),
              ElevatedButton(
                child: Text("Beep something"),
                onPressed: () => FlutterBeep.playSysSound(41),
              ),
              ElevatedButton(
                child: Text("Beep iOS Custom"),
                onPressed: () =>
                    FlutterBeep.playSysSound(iOSSoundIDs.AudioToneBusy),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
150
points
58
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Play system beeps and tones on Android and iOS without bundling sound files. Lightweight fork of flutter_beep with modern Gradle, Kotlin, and Swift Package Manager support.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_beep_new

Packages that implement flutter_beep_new