FLUTTER ECOSYSTEM

codeislife07/phone_state_handler

このプラグインを使用すると、AndroidまたはiOSデバイスが着信を受信しているか、および通話の状態をすばやく簡単に確認できます。

phone_state_handler のプロジェクト画像
Stars
1
Forks
0
最終プッシュ(UTC)
2024/09/22
プロジェクト状態
公開中
CODING IS LIFE GitHub avatar
GITHUB User

CODING IS LIFE ↗

言語DartKotlinSwiftRubyObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^4.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる
https://raw.githubusercontent.com/codeislife07/phone_state_handler/master/images/icon.png

DESCRIPTION

This plugin modified from phone_state

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.

PAY ATTENTION

  • In the iOS simulator doesn't work
  • The phone number is only obtainable on Android!

HOW TO INSTALL

Flutter
dependencies:
  flutter:
    sdk: flutter
  phone_state: 1.0.1
Android: Added permission on manifest
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />

Warning: Adding READ_CALL_LOG permission, your app will be removed from the Play Store if you don't have a valid reason to use it. Read more. But if you don't add it, you will not be able to know caller's number.

HOW TO USE

Get stream phone state status
StreamBuilder<PhoneState>(
  initialData: PhoneState.nothing(),
  stream: PhoneState.stream,
  ...
)

SCREENSHOT

https://raw.githubusercontent.com/codeislife07/phone_state_handler/master/images/example.gif

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.