app_info_helper 0.1.3 copy "app_info_helper: ^0.1.3" to clipboard
app_info_helper: ^0.1.3 copied to clipboard

Unified native app, device, locale, timezone, and identifier information for Flutter apps on iOS and Android.

example/lib/main.dart

import 'package:app_info_helper/app_info_helper.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await AppInfoHelper().init();
  runApp(const ExampleApp());
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    final info = AppInfoHelper();
    final rows = <String, String>{
      'App name': info.appName,
      'Package': info.packageName,
      'Version': info.version,
      'Build': info.buildNumber,
      'Device model': info.deviceModel,
      'Platform': info.platform,
      'OS version': info.osVersion,
      'Locale': info.locale,
      'Country': info.countryCode,
      'Time zone': info.timeZone,
      'Device ID': info.deviceId,
      'Advertising ID': info.advertisingId,
    };

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('app_info_helper')),
        body: ListView(
          padding: const EdgeInsets.all(16),
          children: rows.entries
              .map(
                (entry) => ListTile(
                  title: Text(entry.key),
                  subtitle: Text(entry.value.isEmpty ? '-' : entry.value),
                ),
              )
              .toList(),
        ),
      ),
    );
  }
}
0
likes
120
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Unified native app, device, locale, timezone, and identifier information for Flutter apps on iOS and Android.

Topics

#app-info #device-info #locale #advertising-id #identifiers

License

MIT (license)

Dependencies

flutter

More

Packages that depend on app_info_helper

Packages that implement app_info_helper