问题
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