Overview
The string_contains package enhances Flutter apps with lightweight widgets and extension methods for scanning strings. It enables developers to easily check if a string contains specific patterns such as bad words, URLs, links, emails, phone numbers, hashtags, or mentions. Built for simplicity and performance, it integrates seamlessly into text validation workflows across multiple platforms. The package supports Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications requiring real-time content analysis.
Use cases
- Real-time text validation
- User-generated content filtering
- Form input sanitization
- Social media content scanning
- Link and email detection
- Bad word screening
Key features
- String extension methods
- Built-in pattern detection
- Lightweight widgets
- Cross-platform support
- Easy integration
- Configurable checks
Suitable for
- Content moderation apps
- Social media platforms
- Chat and messaging apps
- Form validation systems
- Educational tools
- Moderation tools
Considerations
- Requires manual configuration of banned terms
- May need updates for new pattern types
- Performance impact with large text blocks
- Limited customization for regex patterns
- Not suitable for complex NLP tasks
- Depends on accurate pattern definitions