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
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.
- app_settings
Open iOS and Android phone settings pages from a Flutter app.
89Compare - flutter_mailer
Share email content via device email client with support for multiple attachments.
71Compare - fk_user_agent
Retrieve Android and iOS device user agents and related constants in Flutter.
50Compare - flutter_phone_direct_caller
A simple flutter plugin to call a phone number directly without opening the dialer.
57Compare
Works with
Packages commonly used together with account_picker: ones it builds on, ones built on it, and its own family.