FLUTTER ECOSYSTEM

platform_detail

A lightweight library to obtain details of the current platform in a much more complete and simple way.

Latest version
5.5.0
30-day downloads
521
Likes
27
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

platform_detail is a lightweight Dart package that simplifies the retrieval of comprehensive platform-specific information. It provides a unified, easy-to-use interface to identify the current operating system, device type, architecture, and other runtime details across multiple platforms including Android, iOS, macOS, Windows, and Linux. Designed for developers needing reliable platform detection without boilerplate code, it abstracts low-level platform checks into clean, readable methods. The library is ideal for conditional logic based on environment or device characteristics.

Use cases
  • Conditional UI rendering based on platform
  • Device-specific feature toggles
  • Cross-platform debugging utilities
  • Runtime environment introspection
  • Optimizing performance per device
  • Testing platform-specific behaviors
Key features
  • Supports Android, iOS, macOS, Windows, and Linux
  • Simple API for platform and device detection
  • Returns detailed system information
  • Lightweight with no external dependencies
  • Consistent interface across platforms
  • Easy integration via pub add
Suitable for
  • Cross-platform Flutter apps
  • Apps requiring platform-aware logic
  • Developers seeking minimal setup
  • Debugging and diagnostics tools
  • Apps targeting multiple desktop and mobile platforms
Considerations
  • Does not support web platform
  • Limited to runtime platform info only
  • No real-time platform change detection
  • Relies on native platform APIs
  • May require permission handling on some platforms
  • Not intended for complex device fingerprinting
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add platform_detail

Categories

Dependencies

Dependency list 3 items

Source repository

Related projects

No data available yet.