call_state_handler 1.0.1
call_state_handler: ^1.0.1 copied to clipboard
A Flutter plugin that detects phone calls and video calls on both Android and iOS platforms. This plugin helps you monitor call states in your app, allowing you to take appropriate actions when calls [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add call_state_handlerWith Flutter:
$ flutter pub add call_state_handlerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
call_state_handler: ^1.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:call_state_handler/call_state_handler.dart';