Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_lints

Provides the recommended set of Flutter lint rules for static analysis.

pub.devRemove
hardcoded_strings_lint

A custom Dart analyzer plugin that detects hardcoded strings in widget constructors.

pub.devRemove
ScoresHealth83 (best)57
Maintenance5659 (best)
Quality100 (best)97
Popularity97 (best)23
Community80 (best)17
Compatibility100 (best)85
UsageDownloads (30 days)12M (best)1.8k
Likes1.3k (best)10
Pub points160 / 160160 / 160
GitHub stars5.3k (best)2
MaintenanceLatest release6.0.0, a year ago2.1.1, 3 months ago (best)
Major versions in 12 months0 (best)1
Contributors100+ (best)3
Publisherflutter.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)5
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Easy to adopt via a single dev_dependency
  • Keeps lint rules up‑to‑date with Dart and Flutter releases
  • Well‑documented usage in README
  • Integrates natively with `dart analyze` and the Dart Analysis Server without extra CLI commands
  • Smart filtering skips technical patterns like URLs, emails, hex colors, and file paths
  • Provides quick fixes including extracting to variables and updating `analysis_options.yaml`
Weaknesses
  • Limited to the rules curated by the package
  • May be too strict for some legacy codebases
  • Does not run under `flutter analyze`
  • Requires updating `analysis_options.yaml` with top-level `plugins` block
Warnings
  • Quiet but busy
None
flutter_lints vs hardcoded_strings_lint: which Flutter package should you use? | pubscout