FLUTTER ECOSYSTEM

tolotrasamuel/account_picker

Fordern Sie den Benutzer auf, eine E-Mail-Adresse oder eine Telefonnummer aus dem Gerät auszuwählen, ohne zusätzliche Berechtigungen zu benötigen

Projektcover von account_picker
Stars
3
Forks
5
Letzter Push (UTC)
10.12.2024
Projektstatus
Aktiv
tolotrasamuel GitHub avatar
GITHUB User

tolotrasamuel ↗

Just a hamster hitting the keyboard while eating a biscuit

SprachenKotlinDartShell

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 4 Einträge
  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_testEntwicklung{"sdk":"flutter"}
  • flutter_lintsEntwicklung^3.0.0

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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:

  • https://github.com/tolotrasamuel/account_picker/issues/8