flutter_dtmf_pro 2.0.2 copy "flutter_dtmf_pro: ^2.0.2" to clipboard
flutter_dtmf_pro: ^2.0.2 copied to clipboard

A modern Flutter plugin for generating DTMF tones with updated Gradle and Kotlin support.

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,
                ignoreDtmfSystemSettings:true,
            forceMaxVolume: true);
          },
        )),
      ),
    );
  }
}
1
likes
150
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A modern Flutter plugin for generating DTMF tones with updated Gradle and Kotlin support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

change_app_package_name, flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on flutter_dtmf_pro

Packages that implement flutter_dtmf_pro