Skip to content

GroovinChip/direct_dialer

Repository files navigation

direct_dialer

Allows Flutter applications to directly dial a phone number.

Setup

Android

  1. Add <uses-permission android:name="android.permission.CALL_PHONE"/> to your AndroidManifest.xml
  2. Set minSdkVersion to 23 in your app-level build.gradle

Usage

For Android/iOS:

Future<void> dial() async {
  final dialer = await DirectDialer.instance;
  await dialer.dial('123-456-7890');
}

For iOS, iPad, macOS:

Future<void> dial() async {
  final dialer = await DirectDialer.instance;
  // FaceTime video
  await dialer.dialFaceTime('123-456-7890', true);
  // FaceTime audio
  await dialer.dialFaceTime('123-456-7890', false);
}

About

Allows Flutter applications to directly dial a phone number.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published