direct_phone_call 1.0.0 copy "direct_phone_call: ^1.0.0" to clipboard
direct_phone_call: ^1.0.0 copied to clipboard

Flutter plugin to call a number directly, without going to phone dialer, from app

direct_phone_call #

A simple flutter plugin to call number directly from app, without going to phone dialer app. Permission request is handled by plugin.

Usage #

Add dependency to pubspec.yaml file

direct_phone_call: ^1.0.0

Android #

No need any additional configuration.

iOS #

Under development

Example #

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

void main() {
  runApp(Scaffold(
    body: Center(
      child: RaisedButton(
        onPressed: _callNumber,
        child: Text('Call Number'),
      ),
    ),
  ));
}

_callNumber() async{
  const number = '09641079XXXX'; //set the number here
  bool res = await FlutterPhoneDirectCaller.callNumber(number);
}
1
likes
140
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin to call a number directly, without going to phone dialer, from app

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on direct_phone_call