smart_text_flutter
0.4.0, released 2 months ago by developerjamiu.com
Detects and highlights links in text using platform native APIs.
What it does
A Flutter plugin that uses NSDataDetector on iOS and TextClassifier on Android to automatically find and classify links in plain text (such as addresses, phone numbers, emails, dates/times, and URLs). It provides custom widgets like SmartText to render these links with custom configurations.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to automatically linkify addresses, phone numbers, emails, dates, and URLs in plain text.
- You want native link detection performance via NSDataDetector and TextClassifier.
Skip it when
- You need dateTime support on Android (not supported).
- You need address support on Android 8.1 (API 27) and below.
Strengths
- Uses platform-native text classification APIs.
- Supports customizable text styles and click handlers for each link type.
- Provides both SmartText and SmartSelectableText widgets.
Weaknesses
- Some features like DateTime are unsupported on Android.
- Minimum iOS version requirement is 13.0.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Requires minimum iOS 13.0 and Android SDK 19+.
SmartText(
'Here is a text with an address: 36 Lagos Street written at 9 PM by someone with phone: +2340000000000 and you can reach him at reaching@email.com or you can check twitter.com',
)Alternatives
Packages that do the same job and could replace smart_text_flutter.
- gpt_markdown
Powerful Flutter Markdown and LaTeX renderer built for AI streaming outputs.
94Compare - flutter_link_previewer
Customizable Flutter widget to fetch and render URL link previews.
91Compare - textf
Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting
81Compare - flutter_markdown_plus
A Markdown renderer widget for Flutter to display rich text from plain text data.
77Compare
Works with
Packages commonly used together with smart_text_flutter: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacesmart_text_flutter depends on itReusable base class for platform interfaces of Flutter federated plugins.
- url_launcher_iossmart_text_flutter depends on itiOS implementation of the url_launcher plugin for launching URLs on iOS devices.
- url_launchersmart_text_flutter depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.