phone_state_i 0.0.3 phone_state_i: ^0.0.3 copied to clipboard
Listen to Phone Call State(phone is connected/Idle) and provide call back on both iOS and andriod devices.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add phone_state_i
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
phone_state_i: ^0.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:phone_state_i/phone_state_i.dart';