account_picker 1.0.3 copy "account_picker: ^1.0.3" to clipboard
account_picker: ^1.0.3 copied to clipboard

outdated

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

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 #

Implement the Ios method channel

25
likes
0
pub points
84%
popularity

Publisher

verified publishertolotra.com

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

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on account_picker