direct_call_new 0.0.1 copy "direct_call_new: ^0.0.1" to clipboard
direct_call_new: ^0.0.1 copied to clipboard

A new Flutter plugin to make direct call from flutter app.

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");
        }
}
0
likes
130
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter plugin to make direct call from flutter app.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on direct_call_new

Packages that implement direct_call_new