FLUTTER ECOSYSTEM

string_contains

Package provides light widgets[for Linkify, Clean] and string scanner extensions on a string to check it contains bad words/urls/links/emails/phone numbers/#hashtags/@mentions etc.

Latest version
2.4.0
30-day downloads
2K
Likes
51
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add string_contains

Categories

Source repository

Projects using this package

No data available yet.