direct_phone_call 1.0.0 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);
}