Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefile_magic_number

Detect file types based on content headers and magic numbers across platforms.

pub.devRemove
path_provider_foundation

iOS/macOS implementation of path_provider using direct FFI calls

pub.devRemove
ScoresHealth7378 (best)
Maintenance75 (best)61
Quality93100 (best)
Popularity4761 (best)
Community5280 (best)
Compatibility100100
UsageDownloads (30 days)6.6k11M (best)
Likes28 (best)9
Pub points150 / 160160 / 160 (best)
GitHub stars65.3k (best)
MaintenanceLatest release2.1.0, 4 months ago (best)2.6.0, 10 months ago
Major versions in 12 months10 (best)
Contributors3100+ (best)
Publishervictorcarreras.devflutter.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxiOS, macOS
WASM-readyYesYes
KindFlutter widgetsPlugin (native code)
Code generationNoNo
Direct dependencies33
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Supports mobile, desktop, and web without native code dependencies.
  • Allows dynamic registration of custom file signatures, extensions, and MIME-to-type mappings.
  • Optimized stream reading prevents high memory usage on large files.
  • Direct FFI for potentially better performance
  • Up-to-date SDK support (Flutter 3.38.4/Dart 3.10+)
  • Endorsed by Flutter team
Weaknesses
  • Limited to predefined file type signatures unless custom types are explicitly registered.
  • Only supports iOS and macOS
  • Requires Flutter 3.38.4 or newer
WarningsNone
  • Native setup
file_magic_number vs path_provider_foundation: which Flutter package should you use? | pubscout