app_device_info 0.0.2 copy "app_device_info: ^0.0.2" to clipboard
app_device_info: ^0.0.2 copied to clipboard

A Flutter package that provides comprehensive device and application information.

AppDeviceInfo #

AppDeviceInfo is a Flutter library that simplifies the process of retrieving essential application and device information. This package allows developers to easily access key details about their app and the device it’s running on, making it useful for various purposes such as analytics, debugging, and enhancing user experience.

Features #

  • Retrieve application information like app name, package name, version, and build number.
  • Retrieve device information for both Android and iOS platforms.

Getting started #

To start using AppDeviceInfo, follow these steps:

  1. Add dependencies:

    Add the following dependencies to your pubspec.yaml file:

    dependencies:
      flutter:
        sdk: flutter
      app_device_info: ^0.0.1
    
    copied to clipboard

Then, run flutter pub get to fetch the new dependencies.

Usage #

  1. Initialize the package:

    final appDeviceInfo = await AppDeviceInfo.getInstance();
    
    copied to clipboard
  2. Initialize device information:

    await appDeviceInfo.initDeviceInfo(context);
    
    copied to clipboard
  3. Retrieve app information:

    String appName = appDeviceInfo.appName;
    String packageName = appDeviceInfo.packageName;
    String version = appDeviceInfo.version;
    String buildNumber = appDeviceInfo.buildNumber;
    
    copied to clipboard
  4. Retrieve device information:

    if (Theme.of(context).platform == TargetPlatform.android) {
        String? androidModel = appDeviceInfo.androidModel;
        String? androidManufacturer = appDeviceInfo.androidManufacturer;
        String? androidVersion = appDeviceInfo.androidVersion;
    } else if (Theme.of(context).platform == TargetPlatform.iOS) {
        String? iosModel = appDeviceInfo.iosModel;
        String? iosSystemName = appDeviceInfo.iosSystemName;
        String? iosVersion = appDeviceInfo.iosVersion;
    }
    
    copied to clipboard

Additional Information #

For more information about the AppDeviceInfo package, visit the GitHub repository. You can contribute to the package by submitting bug reports, feature requests, or pull requests through the repository's issue tracker.

We welcome contributions from the community to improve and enhance the functionality of this package. Please refer to the CONTRIBUTING.md file in the repository for guidelines on how to contribute.

If you encounter any issues or have questions about using the package, feel free to open an issue on GitHub. Our team will do our best to address your concerns and provide support.

3
likes
140
points
81
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.27 - 2025.03.11

A Flutter package that provides comprehensive device and application information.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

device_info_plus, flutter, package_info_plus

More

Packages that depend on app_device_info