Skip to content
pubscout

client_information

2.2.0, released 2 years ago by an unverified publisher

Fetch basic app, OS, and device information across Android, iOS, and Web.

$ flutter pub add client_information
Source repository

What it does

Provides a simple API to retrieve application, software, operating system, and device details. It supports mock data for testing and allows decorators to modify returned values.

AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display or log app metadata such as version or build code.
  • You want to identify a device uniquely for analytics or feature flags.
  • You need OS or browser information for conditional logic.
  • You want to mock device data in unit tests.

Skip it when

  • Your project requires more detailed hardware sensor data beyond basic identifiers.
  • You need to persist device identifiers across app upgrades without using cookies on Web.

Strengths

  • Cross‑platform support (Android, iOS, Web).
  • Simple async API with no build_runner or codegen.
  • Built‑in mock mode for testing.
  • Decorator support for custom value formatting.

Weaknesses

  • Web deviceId is generated via cookie, not a true hardware ID.
  • Limited to basic metadata; no sensor or network info.
  • No support for platform‑specific advanced features.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:client_information/client_information.dart';

Future<void> main() async {
  ClientInformation info = await ClientInformation.fetch();
  print('Device ID: ${info.deviceId}');
  print('OS: ${info.osName} ${info.osVersion}');
}

Alternatives

Packages that do the same job and could replace client_information.

Works with

Packages commonly used together with client_information: ones it builds on, ones built on it, and its own family.