Reputation: 11
For example,i need the results of Manufacuturer name, Model name, Android version. In xamarin forms they provided the device information and other hardware level stuffs achieved through xamarin essentials https://learn.microsoft.com/en-us/xamarin/essentials/. Likewise i would like to get the details. please help me this. My current dart sdk version is 2.17.0-266.1.beta. Thanks in advance...
Upvotes: 1
Views: 1471
Reputation: 471
You can get current device information from within the Flutter application by using the device_info_plus package.
This supports all kinds of platforms, including Android, iOS, macOS, web, Linux, and Windows.
Documentation: https://pub.dev/packages/device_info_plus
Upvotes: 1
Reputation: 471
Go to your pubspec.yaml file, Check if this dependency it exists,
dependencies:
device_info_plus: ^3.2.3
then make sure to run this directly from the command line:
$ flutter packages get
now it should work!
Upvotes: 0