v1.0.1phone_state_handler
此外掛程式可讓您快速且輕鬆地了解您的 Android 或 iOS 裝置是否正在接收來電,以及通話狀態。
此外掛程式可讓您快速且輕鬆地了解您的 Android 或 iOS 裝置是否正在接收來電,以及通話狀態。
以下為英文專案原文快照,最新內容請造訪 GitHub。
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.
dependencies:
flutter:
sdk: flutter
phone_state: 1.0.1
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
Warning: Adding
READ_CALL_LOGpermission, 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.
StreamBuilder<PhoneState>(
initialData: PhoneState.nothing(),
stream: PhoneState.stream,
...
)
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.
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^4.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗