Skip to content
pubscout

contacts_service

0.6.3, released 5 years ago by an unverified publisher

Retrieve and manage device contacts on Android and iOS.

WASM-ready
$ flutter pub add contacts_service
Source repository

What it does

A Flutter plugin that allows applications to access, query, add, update, and delete device contacts on Android and iOS. It supports retrieving avatars, querying by string or email, and opening native device contact forms and pickers.

AI-written summary of version 0.6.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Your app needs to import contacts from the user's address book
  • You need to create, update, or delete device contacts from within the app

Skip it when

  • You need a plugin that automatically handles runtime permissions checking and requesting
  • You do not need native contact book integration

Strengths

  • Supports querying contacts by string or email
  • Allows opening native device forms for creating and editing contacts
  • Provides optional thumbnail loading for better performance

Weaknesses

  • Does not handle the process of checking and requesting runtime permissions
  • Requires manual native configuration for Android and iOS permissions

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Requires adding READ_CONTACTS and WRITE_CONTACTS permissions to AndroidManifest.xml and NSContactsUsageDescription to Info.plist on iOS. You must also use a separate permission plugin like permission_handler to request user permission.

import 'package:contacts_service/contacts_service.dart';

List<Contact> contacts = await ContactsService.getContacts();

Alternatives

Packages that do the same job and could replace contacts_service.

Works with

Packages commonly used together with contacts_service: ones it builds on, ones built on it, and its own family.