Skip to content

[device_info_plus] Get current device information as map #615

@ueman

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;

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