Skip to content

Flutter plugin to dial any phone number from the application directly.

License

Notifications You must be signed in to change notification settings

sumanrajpathak/flutter-phone-dialer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Phone Dialer

GitHub license pub package package publisher

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

About

Flutter plugin to dial any phone number from the application directly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published