Search packages, repositories and app categories

Package detailsv0.0.2

contact_picker

A Flutter plugin for picking a contact from the address book.

30-day downloads
126
Likes
26
Pub points
40

Install package

flutter pub add contact_picker

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The contact_picker package is a Flutter plugin that enables users to select contacts from their device's address book. It provides a simple, cross-platform interface for retrieving contact information such as names and phone numbers. The plugin integrates seamlessly with native contact systems on both Android and iOS, ensuring reliable access to the user's contacts. It is ideal for apps requiring contact selection for features like messaging, calling, or sharing data. The package is maintained by a community contributor and supports easy integration via pub.dev.

Use cases

  • Selecting contacts for messaging apps
  • Importing contacts into user profiles
  • Enabling quick dialing features
  • Sharing data with selected contacts
  • Building contact importers

Key features

  • Cross-platform contact selection
  • Simple API for retrieving contact details
  • Native integration with device address book
  • Supports name and phone number retrieval
  • Easy setup via pub.dev

Suitable for

  • Mobile apps needing contact access
  • User profile management tools
  • Communication-focused applications
  • Apps requiring contact-based actions
  • Developers seeking minimal contact integration

Considerations

  • Requires runtime permissions on Android and iOS
  • Limited to basic contact fields (name, phone)
  • No support for email or additional contact info
  • Platform-specific behavior may vary
  • Needs proper handling of permission requests

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Source repository

Projects using this package

No data available yet.