Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributelegalize

Provides functions to validate and sanitize filenames for various operating systems.

pub.devRemove
sanitize_filename

Sanitizes strings by removing or replacing characters illegal for filenames.

pub.devRemove
ScoresHealth44 (best)30
Maintenance1 (best)0
Quality100100
Popularity1227 (best)
Community41 (best)35
Compatibility100100
UsageDownloads (30 days)5695k (best)
Likes9 (best)8
Pub points160 / 160160 / 160
GitHub stars25 (best)
MaintenanceLatest release1.2.2, 3 years ago (best)1.0.5, 4 years ago
Major versions in 12 months00
Contributors1 (best)0
Publishercaesarovich.xyze-go-mobile.de
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseLGPL-3.0LGPL-3.0
Setup effortLowLow
JudgementStrengths
  • Covers major OS filename rules in one library
  • Simple, zero‑dependency API
  • Allows custom control‑character handling
  • Zero dependencies
  • Works on all Dart platforms
  • Customizable replacement character
Weaknesses
  • Limited to character sanitization, no path handling
  • Package is still marked as in development
  • Only handles character replacement, no path normalization
  • Limited configurability
Warnings
  • File-level copyleft
  • File-level copyleft
  • Repository archived
legalize vs sanitize_filename: which Flutter package should you use? | pubscout