搜索插件、代码仓与 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.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。