Repositório GitHubDRSchlaubi/contact_picker

seletor de contatos

Um plug-in do Flutter para selecionar um contato da agenda de endereços.

Capa do projeto seletor de contatos
Estrelas
18
Forks
43
Último push (UTC)
15 de mar. de 2024
Status do projeto
Arquivado

README original

Texto original em inglês. Visite o GitHub para a versão atual.

fluttercontactpicker

pub.dev

Interact with native OS contact pickers using Flutter

Note: This plugin requires at least Kotlin 1.5.0 to compile. See (#38 (comment) for more information)

Web demo: https://fcp.mik.wtf/

Contents

Getting Started

Grab contact.

final PhoneContact contact =
                    await FlutterContactPicker.pickPhoneContact();

For more info read the docs or take a look at the example

Features

  • Pick a phone/email contact using the OSs native contact picker
  • Pick a Full contact (except iOS)
  • Support Flutter Web

Permissions

If you target Android 11+ (API 30+) you need to obtain the android.permission.READ_CONTACTS permission, which is declared as a library permission here this permission will be requested automatically if the askForPermission parameter is true.

Alternatively you can request the permission manually with FlutterContactPicker.requestPermission() or check with FlutterContactPicker.hasPermission()

Obtain Full Contact (Android Only)

Note: Unlike Android iOS does not offer a way to directly get a full contact from the ContactPicker therefore this library does not support it. Apple might add it in 2030 so stay tuned

final FullContact contact =
                    await FlutterContactPicker.pickFullContact();
Obtain profile picture

The FullContact class has a photo property if the picked contact has an avatar. You can use the asWidget() method to get a renderable Image widget.

Full documentation: https://pub.dev/documentation/fluttercontactpicker/latest/fluttercontactpicker/fluttercontactpicker-library.html

Web support

This plugin also supports the Web Contact Picker API.

Michael Rittmeister GitHub avatar
Autor no GitHub

Michael Rittmeister ↗

I like planes

LinguagensDartKotlinSwiftHTMLRubyObjective-C

Categorias

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗