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

PlatformAndroid

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'),
        ),
      ),
    );
  }
}
6
likes
150
pub points
83%
popularity

Publisher

verified publisherdayananda.tech

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