flutter_phone_direct_caller 1.0.1 copy "flutter_phone_direct_caller: ^1.0.1" to clipboard
flutter_phone_direct_caller: ^1.0.1 copied to clipboard

outdated

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

flutter_phone_direct_caller #

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

Usage #

Add dependency to pubspec.yaml file

flutter_phone_direct_caller:
  git:
    url: https://github.com/yanisalfian/flutter-phone-direct-caller.git

Android #

No need any additional configuration.

iOS #

Add this to your info.plist under dict

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>tel</string>
</array>

Example #

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

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

_callNumber() async{
  const number = '08592119XXXX'; //set the number here
  bool res = await FlutterPhoneDirectCaller.callNumber(number);
}
323
likes
40
pub points
98%
popularity

Publisher

unverified uploader

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

Homepage

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_phone_direct_caller