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

本小妞迷上赌 提交于 2021-02-10 05:48:04

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/55859730/flutter-or-dart-how-to-i-get-device-information-such-as-cpu-count-total-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!