SmartTextFlutter is a Flutter plugin that automatically detects and identifies links within text strings using platform-specific APIs—NSDataDetector on iOS and TextClassifier on Android. It enables developers to enhance text rendering by making URLs, phone numbers, and other actionable content clickable without manual parsing. The package simplifies integration with native text detection capabilities, ensuring accurate and efficient link recognition across platforms. Ideal for chat apps, news readers, and any app requiring intelligent text processing.
Use cases
- Detecting clickable links in user-generated content
- Enhancing message threads with auto-linking
- Parsing contact information from text
- Improving readability in rich text displays
- Automatically identifying URLs in social media posts
Key features
- Uses native text detection APIs on iOS and Android
- Supports automatic linking of URLs and phone numbers
- Minimal setup with straightforward API
- Cross-platform consistency
- Lightweight and efficient
Suitable for
- Chat and messaging applications
- Content display widgets
- Social media integrations
- User input processing
- Apps needing smart text handling
Considerations
- Limited to link and contact detection
- Requires platform-specific permissions for some features
- May need additional styling for custom link appearance
- Depends on native SDK versions
- Not suitable for complex text pattern matching
