v2.2.1
flutter_phone_direct_caller
Simple flutter plugin to call a number directly, without going to phone dialer, from app
385Likes 11.4K30-day downloads135Pub points
AndroidiOS
Call a number directly from flutter application
{"sdk":"flutter"}1.0.4English project snapshot. Visit GitHub for the latest content.
A simple plugin to call number directly from app, without going to phone dialer. Permission request is handled by plugin.
Add dependency to pubspec.yaml file
flutter_phone_direct_caller: ^2.2.1
No need any additional configuration.
Add this to your info.plist under dict
<key>LSApplicationQueriesSchemes</key>
<array>
<string>tel</string>
</array>
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);
}