aurora_context_kit

aurora_context_kit is a Flutter plugin that provides a device context profile from native Android and iOS layers.

What makes it useful

  • Returns locale and timezone in one call.
  • Detects 24-hour clock preference.
  • Provides physical-device vs emulator/simulator signal.
  • Includes hardware/model level details for analytics and UX personalization.
  • Generates a ready-to-use contextBadge string for logs, support, or diagnostics.

Installation

dependencies:
  aurora_context_kit: ^0.1.0

Usage

import 'package:aurora_context_kit/aurora_context_kit.dart';

final kit = AuroraContextKit();
final context = await kit.getDeviceContext();

print(context.contextBadge);
print(context.locale);
print(context.timeZone);
print(context.isPhysicalDevice);

Returned fields

  • platform
  • osVersion
  • deviceModel
  • locale
  • timeZone
  • is24HourFormat
  • isPhysicalDevice
  • contextBadge
  • sdkInt (Android)
  • manufacturer (Android)
  • brand (Android)
  • hardwareIdentifier (Android/iOS)

Publish checklist

  1. Run flutter test.
  2. Run flutter pub publish --dry-run.
  3. Publish with flutter pub publish.