v2.2.0account_picker
提示使用者選擇裝置上儲存的電子郵件或電話號碼,無需額外權限
29喜歡 439近 30 天下載160Pub 分數
Android
提示使用者選擇裝置上儲存的電子郵件或電話號碼,無需額外權限
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^3.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
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
final String phone = await AccountPicker.phoneHint();
setState(() {
_phoneNumber = phone;
});
final EmailResult emailResult = await AccountPicker.emailHint();
print(emailResult);
setState(() {
_email = emailResult.email;
_accountType = emailResult.type;
});
Accepting PR for: