Skip to content

[device_info_plus] Get current device information as map #615

Description

@ueman

Use case

The device_info_plus plugin is often used to get more device information for crash reports or similar reasons.
In this use-case it's really cumbersome to use because you first have to detect the platform and then use the correct getter for the current device information. Therefor, it would be really useful if there's a method which gets the current device information.

Proposal

I would like to have a method like the following example:

DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
// gets current device information
Map<String, dynamic> deviceInfo = await deviceInfo.info;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions