call_integrate

Creator: coderz1093

Last updated:

0 purchases

call_integrate Image
call_integrate Images

Languages

Categories

Add to Cart

Description:

call integrate

call_integrate #

A Flutter plugin for calling.




Android
iOS




Support
SDK 16+
11.0+



Usage #
To use this plugin, add call_integrate as a dependency in your pubspec.yaml file.
Example #

import 'dart:async';
import 'package:call_integrate/call_integrate.dart';
import 'package:flutter/material.dart';

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

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

@override
State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
final _callIntegratePlugin = CallIntegrate();

Future<void> phoneCall(String phoneNo) async {
await _callIntegratePlugin.makePhoneCall(phoneNo);
}

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: ElevatedButton(
onPressed: () {
phoneCall('1234567890');
},
child: const Text('Call'),
),
),
),
);
}
}
copied to clipboard
See the example app for more complex examples.
Configuration #
Android #
We need to add the permission to use Call Feature.
In the android/app/src/main/AndroidManifest.xml let’s add:
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-permission android:name="android.permission.CALL_PHONE"/>
<application

copied to clipboard
Call Feature are only supported if there are apps installed on the device that can
support them. For example, iOS simulators don't have a default email or phone
apps installed, so can't open tel: links.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.