phone_hint_android
1.2.0, released 2 years ago by nikb.in
Flutter plugin to retrieve a SIM‑based phone number hint on Android.
What it does
It invokes Android's Phone Number Hint API, shows a hint dialog with the device's phone numbers, and returns the selected number. No extra permissions are required.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to obtain the user's phone number on Android without manual entry
- You want a quick, permission‑free way to suggest the phone number during sign‑up or onboarding
Skip it when
- Your app must run on iOS or other platforms
- You need full control over the UI for phone number entry
Strengths
- No additional permission requests
- Works on a wide range of Android versions
- Simple, single‑method API
Weaknesses
- Android‑only, no iOS support
- Relies on the device having a SIM‑based number
- May return null if no hint is available
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
final phoneNumber = await PhoneHintAndroid().getPhoneNumber();Alternatives
Packages that do the same job and could replace phone_hint_android.
- phone_numbers_parser
Dart library for parsing, validating, and formatting international phone numbers.
87Compare - safe_text
Fast Dart profanity and swear word filter with phone number detection for 80+ languages.
78Compare - dlibphonenumber
Parse, format, validate and extract international phone numbers in pure Dart.
77Compare - package_signature
Retrieve Android package signature (SHA1/SHA256) in a Flutter app.
66Compare
Works with
Packages commonly used together with phone_hint_android: ones it builds on, ones built on it, and its own family.