FLUTTER ECOSYSTEM

tolotrasamuel/account_picker

提示使用者選擇裝置上儲存的電子郵件或電話號碼,無需額外權限

account_picker 專案封面
Stars
3
Forks
5
最近推送(UTC)
2024年12月10日
專案狀態
未封存
tolotrasamuel GitHub avatar
GITHUB User

tolotrasamuel ↗

Just a hamster hitting the keyboard while eating a biscuit

語言KotlinDartShell

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項
  • flutter{"sdk":"flutter"}
  • plugin_platform_interface^2.0.2
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^3.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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