This plugin allows you to know quickly and easily if your Android or iOS device is receiving a call and to know the status of the call.
- Native Android: TelephonyManager
- Native iOS: CallKit
- In the iOS simulator doesn't work
dependencies:
flutter:
sdk: flutter
phone_state: ^1.0.0
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
StreamBuilder<PhoneStateStatus?>(
initialData: PhoneStateStatus.NOTHING,
stream: PhoneState.phoneStateStream,
...
Write me in the GitHub issues the new features you need and, if they are approved of course, I will implement them as soon as I can.