Skip to content

Prompt user to pick an Email or a Phone number saved on device without requiring extra permission

License

Notifications You must be signed in to change notification settings

tolotrasamuel/account_picker

Repository files navigation

Account Picker Plugin

This Flutter plugin prompt suser to pick an Email or a Phone number saved on device without requiring extra permission It is a lightweight plugin that does not require extra permssion. This plugin does not require any special device permission.

It uses AccountPicker API.

This currently works for Android only.

Demo App

Usage to request Phone

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

Usage to request Email

final EmailResult emailResult = await AccountPicker.emailHint();
print(emailResult);
setState(() {
    _email = emailResult.email;
    _accountType = emailResult.type;
});

TODO

Accepting PR for:

About

Prompt user to pick an Email or a Phone number saved on device without requiring extra permission

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages