Flutter Phone Dialer
Calls Made Simple: Integrate Phone Number Dialing into Your Flutter App Effortlessly!
Usage
Add dependency to pubspec.yaml file
flutter_phone_dialer: ^0.0.5
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_dialer/flutter_phone_dialer.dart';
void main() {
runApp(Scaffold(
body: Center(
child: RaisedButton(
onPressed: _callNumber,
child: Text('Dial Number'),
),
),
));
}
_callNumber() async{
const number = '0123456789'; //enter your number here
bool res = await FlutterPhoneDialer.dialNumber(number);
}