Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedisplay_metrics

Retrieve physical display size, resolution, and PPI, and convert inches and mm to logical pixels.

pub.devRemove
fk_user_agent

Retrieve Android and iOS device user agents and related constants in Flutter.

pub.devRemove
ScoresHealth77 (best)50
Maintenance89 (best)0
Quality100 (best)91
Popularity3966 (best)
Community52 (best)46
Compatibility100100
UsageDownloads (30 days)3.5k24k (best)
Likes1844 (best)
Pub points160 / 160 (best)140 / 160
GitHub stars410 (best)
MaintenanceLatest release2.7.0, 3 weeks ago (best)2.1.0, 5 years ago
Major versions in 12 months00
Contributors3 (best)2
Publishernukeolay.devtoutao.cloud
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS
WASM-readyYesYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies70 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Supports multiple platforms including Android, iOS, Windows, macOS, Linux, and Web.
  • Provides convenient BuildContext extension methods for unit conversion.
  • Handles unknown or new devices via an onUnknownDisplay callback.
  • Provides both system and WebView user agents for Android and iOS.
  • Returns additional useful constants for custom user-agent building.
Weaknesses
  • Physical dimensions and DPI cannot be accurately determined on the web platform due to browser restrictions.
  • Requires placing DisplayMetricsWidget above MaterialApp in the widget tree.
  • Limited to Android and iOS platforms.
  • Documentation does not mention support for desktop or web platforms.
Warnings
  • Native setup
  • Native setup
display_metrics vs fk_user_agent: which Flutter package should you use? | pubscout