# fluttertpc_flutter_phone_direct_caller
**Repository Path**: openharmony-sig/fluttertpc_flutter_phone_direct_caller
## Basic Information
- **Project Name**: fluttertpc_flutter_phone_direct_caller
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 4
- **Created**: 2024-05-21
- **Last Updated**: 2025-05-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 🚨 **重要提示 | IMPORTANT**
>
> **⚠️ 此代码仓已归档。新地址请访问 [fluttertpc_flutter_phone_direct_caller](https://gitcode.com/openharmony-sig/fluttertpc_flutter_phone_direct_caller)。| ⚠️ This repository has been archived. For the new address, please visit [fluttertpc_flutter_phone_direct_caller](https://gitcode.com/openharmony-sig/fluttertpc_flutter_phone_direct_caller).**
>
---
>
# flutter_phone_direct_caller
A simple plugin to call number directly from app, without going to phone dialer. Permission request is handled by plugin.
## Usage
Add dependency to pubspec.yaml file
```
flutter_phone_direct_caller: ^2.1.1
```
### Android
No need any additional configuration.
### Ohos
No need any additional configuration.
### iOS
Add this to your ```info.plist``` under ```dict```
```
LSApplicationQueriesSchemes
tel
```
## Example
```dart
import 'package:flutter/material.dart';
import 'package:flutter_phone_direct_caller/flutter_phone_direct_caller.dart';
void main() {
runApp(Scaffold(
body: Center(
child: RaisedButton(
onPressed: _callNumber,
child: Text('Call Number'),
),
),
));
}
_callNumber() async{
const number = '08592119XXXX'; //set the number here
bool res = await FlutterPhoneDirectCaller.callNumber(number);
}
```