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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_direct_call/flutter_direct_call.dart';
import 'package:permission_handler/permission_handler.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Direct Call Example')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              PermissionStatus status = await Permission.phone.request();
              if (status.isGranted) {
                FlutterDirectCall.makeCall("123456789");
              } else {
                print("Permission Denied");
              }
            },
            child: Text("Make Call"),
          ),
        ),
      ),
    );
  }
}
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