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