Import package:device_name/device_name. dart , instantiate DeviceName and use iOS getters to get device name . You can get the device identifier from device_info. Get utsname.
Read moreHow do you get the platform in Flutter?
How to Check Platform in Flutter
Read moreHow do you add a platform to Android Flutter?
flutter create . You can simply run this from the root of your Flutter project and it will add the required files for all platforms. If you only want to add support for specific enabled platforms, you can do that by supplying the –platforms argument: flutter create –platforms=web,macos .
Read moreHow do I add native code to Flutter?
Writing custom platform-specific code
Read moreHow do you make a Flutter plugin?
How to write a Flutter plugin
Read more