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

outdated

Generates DTFM Tones for Flutter Applications.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:flutter_dtmf/flutter_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: RaisedButton(
          child: Text("Play DTMF"),
          onPressed: () async {
            await FlutterDtmf.playTone(
                digits: "#1234", samplingRate: 8000, durationMs: 160);
          },
        )),
      ),
    );
  }
}
10
likes
30
points
676
downloads

Publisher

verified publishereopeter.com

Weekly Downloads

Generates DTFM Tones for Flutter Applications.

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_dtmf