You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expand to nine span types plus custom detectors #47
Expand from five span types to nine plus custom detectors. All availability below was verified against the platform headers, not from memory.
Type
Apple
Android
Dart (web, Windows, Linux)
url, email, phone
yes
yes
yes
address
yes, with components
yes
no
date, datetime
yes
yes, after the TYPE_DATE fix
no
flight
yes, NSTextCheckingTypeTransitInformation with Airline and Flight keys
yes, TYPE_FLIGHT_NUMBER
no
hashtag, mention
Dart
Dart
yes
custom regex
Dart
Dart
yes
Nine named types against linkify's four.
hashtag and mention are pure Dart, work on every platform, cost almost nothing, and are the most common reason someone reaches for linkify instead of this package today.
Not included: TYPE_OTP. Android declares it @FlaggedApi(FLAG_TEXT_CLASSIFIER_CHOICE_API_ENABLED), so it sits behind a runtime feature flag and cannot be relied on. Revisit when the flag graduates.
Blocked by the config API issue, since each new type currently costs another constructor parameter.
Activity