Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeplatform_detector

Detects the running platform, browser type, and operating system with utility widgets.

pub.devRemove
universal_platform

Platform detection across Flutter, Dart web, and desktop without errors

pub.devRemove
ScoresHealth4550 (best)
Maintenance12 (best)
Quality9696
Popularity2291 (best)
Community4158 (best)
Compatibility100100
UsageDownloads (30 days)1.6k2M (best)
Likes9313 (best)
Pub points150 / 160150 / 160
GitHub stars2111 (best)
MaintenanceLatest release0.2.0, 3 years ago1.1.0, 2 years ago (best)
Major versions in 12 months00
Contributors14 (best)
Publisherea2.devgskinner.com
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies10 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Provides fine-grained detection including mobile vs desktop browsers.
  • Includes helpful widgets like PlatformDetectByType and PlatformDetectByName for declarative rendering.
  • No dependencies, lightweight
  • Works on all supported platforms including Web
  • Simple boolean API
Weaknesses
  • Relies on universal_html which might add unnecessary dependencies if web browser detection is not needed.
  • Duplicates functionality that can be achieved via Flutter's core libraries and universal_platform.
  • Only provides platform checks, no other utilities
  • No support for platform-specific APIs beyond booleans
WarningsNoneNone
platform_detector vs universal_platform: which Flutter package should you use? | pubscout