direct_call_new

A new Flutter plugin for making direct call

Getting Started

Installation To use the direct_call_new plugin in your Flutter project, add it as a dependency in your pubspec.yaml:

dependencies:
  direct_call_new: ^0.0.1  # Replace with the latest version

Run flutter pub get to install the plugin.

Example

import 'package:direct_call_new/direct_call_new.dart';

void maikeCall() {
            FlutterDirectCall.makeCall("123456789");
}

Handling Permissions

The plugin requires permissions to direct call new. Ensure you handle the necessary permissions in your app:

import 'package:permission_handler/permission_handler.dart';

void maikeCall() {
    PermissionStatus status = await Permission.phone.request();
        if (status.isGranted) {
            FlutterDirectCall.makeCall("123456789");
        } else {
            print("Permission Denied");
        }
}