direct_caller_sim_choice 1.0.4 copy "direct_caller_sim_choice: ^1.0.4" to clipboard
direct_caller_sim_choice: ^1.0.4 copied to clipboard

PlatformAndroid
outdated

direct_caller_sim_choice is a Flutter library that allows you to make phone calls directly from your app.

example/example.dart

import 'package:flutter/material.dart';
import 'package:direct_caller_sim_choice/direct_caller_sim_choice.dart';

class MakeCallScreen extends StatelessWidget {
  final String phoneNumber;

  const MakeCallScreen({Key? key, required this.phoneNumber}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Make Call'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            DirectCaller().makePhoneCall(phoneNumber);
          },
          child: Text('Call $phoneNumber'),
        ),
      ),
    );
  }
}
11
likes
150
points
119
downloads

Publisher

verified publisherdayananda.tech

Weekly Downloads

direct_caller_sim_choice is a Flutter library that allows you to make phone calls directly from your app.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

android_intent_plus, flutter

More

Packages that depend on direct_caller_sim_choice