Skip to content
pubscout

account_picker

2.2.0, released 2 years ago by tolotra.com

Prompt user to pick a saved device email or phone number without extra permissions

WASM-ready
$ flutter pub add account_picker
Source repository

What it does

Allows users to select an email address or phone number stored on their device. It utilizes the native Android AccountPicker API to fetch this information. No special device permissions are required.

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

Use it when

  • You need to prompt the user for their email or phone number on Android
  • You want to avoid requesting dangerous device or account permissions

Skip it when

  • You are targeting platforms other than Android
  • You need a multi-platform solution for account picking

Strengths

  • Does not require extra device permissions
  • Lightweight plugin utilizing native AccountPicker API

Weaknesses

  • Currently works for Android only
  • iOS support was removed in version 2.2.0

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

final String phone = await AccountPicker.phoneHint();
setState(() {
    _phoneNumber = phone;
});

Alternatives

Packages that do the same job and could replace account_picker.

Works with

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