aurora_context_kit 0.1.0
aurora_context_kit: ^0.1.0 copied to clipboard
A Flutter plugin that delivers a rich device context profile for Android and iOS.
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
contextBadgestring 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 #
platformosVersiondeviceModellocaletimeZoneis24HourFormatisPhysicalDevicecontextBadgesdkInt(Android)manufacturer(Android)brand(Android)hardwareIdentifier(Android/iOS)
Publish checklist #
- Run
flutter test. - Run
flutter pub publish --dry-run. - Publish with
flutter pub publish.