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

outdated

direct_caller_sim_choice is a Flutter library that allows you to make phone calls directly from your app, with an option to select the SIM card for devices that have dual SIM support.

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
0
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, with an option to select the SIM card for devices that have dual SIM support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

android_intent_plus, flutter

More

Packages that depend on direct_caller_sim_choice