flutter_dtmf 3.0.2 copy "flutter_dtmf: ^3.0.2" to clipboard
flutter_dtmf: ^3.0.2 copied to clipboard

Generates DTFM Tones for Flutter Application. This can be used in VOIP applications or other applications that need to generate DTMF Tones.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dtmf/dtmf.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
            child: ElevatedButton(
          child: Text("Play DTMF"),
          onPressed: () async {
            await Dtmf.playTone(
                digits: "#1234567890*",
                samplingRate: 8000,
                durationMs: 160,
                volume: 0.8);
          },
        )),
      ),
    );
  }
}
copied to clipboard
10
likes
150
points
694
downloads

Publisher

verified publishereopeter.com

Weekly Downloads

2024.09.26 - 2025.04.10

Generates DTFM Tones for Flutter Application. This can be used in VOIP applications or other applications that need to generate DTMF Tones.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on flutter_dtmf