搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.2

contact_picker

一個用於從通訊錄中選擇聯絡人的 Flutter 插件。

近 30 天下載
126
喜歡數
26
Pub 分數
40

安裝套件

flutter pub add contact_picker

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

contact_picker 套件是一個 Flutter 插件,可讓使用者從裝置的通訊錄中選擇聯絡人。它提供一個簡單、跨平台的介面,用於取得聯絡人資訊,例如姓名和電話號碼。此套件與 Android 和 iOS 上的原生聯絡人系統無縫整合,確保可靠存取使用者的聯絡人。非常適合需要聯絡人選擇功能的應用程式,例如即時通訊、撥打電話或分享資料。該套件由社群貢獻者維護,並可透過 pub.dev 輕鬆整合。

適用情境

  • 選擇聯絡人用於訊息應用
  • 將聯絡人匯入使用者資料
  • 啟用快速撥號功能
  • 與選定聯繫人共享資料
  • 建構聯絡人匯入器

主要特色

  • 跨平台聯絡人選擇
  • 用於檢索聯繫人詳細資訊的簡單 API
  • 與設備通訊錄的原生整合
  • 支援姓名和電話號碼的檢索
  • 透過 pub.dev 輕鬆設定

適合對象

  • 需要聯絡人存取權限的行動應用程式
  • 使用者設定檔管理工具
  • 以通訊為重點的應用程式
  • 需要聯絡人操作的應用
  • 尋求最小接觸整合的開發者

使用建議

  • Android 與 iOS 需要執行時權限
  • 僅限基本聯絡人欄位(姓名、電話)
  • 不支援電子郵件或額外聯絡資訊
  • 平台特定的行為可能有所差異
  • 需要正確處理權限請求

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

ContactPicker plugin for Flutter

pub package

With this plugin a Flutter app can ask its user to select a contact from his/her address book. The information associated with the contact is returned to the app.

This plugin uses the operating system's native UI for selecting contacts and does not require any special permissions from the user.

Currently, the plugin only supports picking phone numbers. However, it should be easy to extend the plugin to request other properties from a contact (e.g. addresses) or to obtain the entire record of a contact (PRs are welcome).

Using the plugin

Follow the instructions in the Installing tab on pub.

After that, instantiate ContactPicker in your Flutter app and call selectContact on it to bring up the UI for selecting a contact. The function returns with the selected Contact object once the user has made a choice (or null if the user didn't select anything).

See example/lib/main.dart for an actual usage example.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。