An open API service indexing awesome lists of open source software.

https://github.com/kuromadara/direct_caller_sim_choice

direct_caller_sim_choice is a Flutter library that allows you to make phone calls directly from your app.
https://github.com/kuromadara/direct_caller_sim_choice

caller collaborate flutter flutter-package github-campus-experts

Last synced: 5 months ago
JSON representation

direct_caller_sim_choice is a Flutter library that allows you to make phone calls directly from your app.

Awesome Lists containing this project

README

          

# Direct Caller with SIM Choice

`direct_caller_sim_choice` is a Dart library for Flutter that allows you to make phone calls directly from your app, with an option to select the SIM card for devices that have dual SIM support.

## Support the Project

If you find this package helpful, consider buying me a coffee to support the ongoing development and maintenance of this project:

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dayd)

## Features

Makes Call Directly without user interaction. Ideal for application that has emergency call services. One examlple would be a distress app that makes phone call when phone is shaked three times.

## Getting started

## Installation

Add direct_caller_sim_choice as a dependency in your pubspec.yaml file:

```yaml
dependencies:
direct_caller_sim_choice: ^1.0.4
```
## Usage

Import the library:

```dart
import 'package:direct_caller_sim_choice/direct_caller_sim_choice.dart';
```

To make a phone call, simply call the `makePhoneCall` method:

```dart
final DirectCaller directCaller = DirectCaller();
directCaller.makePhoneCall('1234567890', simSlot: 2);
```

**NOTE** ~~The phone number must be a string with 10 digits.~~ Emergency numbers are not necessarily 10 digit. So I removed the feature. The `simSlot` parameter is optional and defaults to 1 (the first SIM card slot). If the device does not support dual SIM, the library will use the first SIM card slot.

## Platform Support

`direct_caller_sim_choice` currently supports only Android devices. On other platforms, the library returns `false` when the `makePhoneCall` method is called.

## Permissions

In your app's `AndroidManifest.xml` file, make sure you have the CALL_PHONE permission:

```xml

```

## Contributions

Contributions are welcome! Feel free to submit a pull request or open an issue if you find a bug or have a feature request.