Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributestring_contains

String scanner extensions and widgets to detect and clean bad words, URLs, emails, phones, and tags.

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth5083 (best)
Maintenance188 (best)
Quality9696
Popularity4250 (best)
Community5280 (best)
Compatibility100100
UsageDownloads (30 days)2k78k (best)
Likes51 (best)9
Pub points150 / 160150 / 160
GitHub stars9 (best)0
MaintenanceLatest release2.4.0, 3 years ago5.1.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors39 (best)
Publisherbetterx.ioonepub.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Provides both powerful String extension methods and ready-to-use Flutter widgets.
  • Supports multiple patterns including URLs, emails, phone numbers, hashtags, mentions, and custom words.
  • Offers flexible cleaning options with customizable obscuring characters and letter preservation.
  • No external dependencies, pure Dart.
  • Up-to-date regexes and edge‑case handling (e.g., email backtracking fix).
  • Supports Dart 3.x and null safety.
Weaknesses
  • Not a complete replacement for human review or advanced AI-based content moderation.
  • Relies on regex and predefined lists which may produce false positives or miss context-dependent slang.
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
WarningsNoneNone
string_contains vs validators2: which Flutter package should you use? | pubscout