user603749
user603749

Reputation: 1763

Flutter or Dart: How to I get device information such as CPU count, total memory and storage, etc

Using Flutter, I would like to get device information details such as CPU count, bitness, Total Memory, Total device storage, etc. Similar to apps one can get on the App stores.

I looked at device_info package, but that does not cover it. I also looked at system_info (which is pretty good, seems abandoned), but only works on Android since it's using Linux shell commands to get the info. I would also like it to work for iOS.

Any ideas?

Upvotes: 6

Views: 7237

Answers (2)

Alain C. Jiménez
Alain C. Jiménez

Reputation: 416

The information is now available under the package: system_info2 since system_info is discontinued, with this you can easily get:

  1. KernelArchitecture
  2. Kernel bitness
  3. Kernel name
  4. Kernel version
  5. Operating system name
  6. Operating system version
  7. User directory
  8. User id
  9. User name
  10. User space bitness

Upvotes: 1

Anurag Vohra
Anurag Vohra

Reputation: 1973

Add this package to your pubspec.yaml: system_info: ^0.0.15, read more about it here : system_info. The docs says: Provides easy access to useful information about the system (architecture, bitness, kernel, operating system, CPU, user).

Upvotes: 0

Related Questions