desktop_info 1.0.0
desktop_info: ^1.0.0 copied to clipboard

Flutter

Desktop Info is a plugin to get on device information from desktop OS environments

Desktop Info #

Desktop Info is a plugin to get on device information from desktop OS environments, currently only MacOS is Support, feel free to make PRs for others.

🚀 Usage #

  
   String data = await MacOSInfo.systemInfo(
            resultType: MacOSInfoResultType.json, //return as JSON
            type: MacOSInfoType.basic // return Basic data
        );

   print(data);
   
  • resultType can either be json/xml
  • type can either be basic, or mini

🤔 MacOS setup #

You might need to add the following to Release.entitlements file.

    <key>com.apple.security.device.audio-input</key>
	<true/>
	<key>com.apple.security.device.bluetooth</key>
	<true/>
	<key>com.apple.security.device.camera</key>
	<true/>
	<key>com.apple.security.device.usb</key>
	<true/>
	<key>com.apple.security.network.client</key>
	<true/>
	<key>com.apple.security.network.server</key>
  }

or just check as follows

✨ Contribution #

Lots of PR's would be needed to improve this plugin. Suggestions and PRs are highly welcome.

1
likes
90
pub points
11%
popularity

Publisher

codenka.com

Desktop Info is a plugin to get on device information from desktop OS environments

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on desktop_info