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.
- Host: GitHub
- URL: https://github.com/kuromadara/direct_caller_sim_choice
- Owner: kuromadara
- License: mit
- Created: 2023-03-29T10:03:40.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-12T09:43:47.000Z (over 1 year ago)
- Last Synced: 2025-07-25T21:51:14.804Z (11 months ago)
- Topics: caller, collaborate, flutter, flutter-package, github-campus-experts
- Language: Dart
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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:
[](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.