手机型号:

Future deviceInfo = VRDeviceInfo.deviceInfoBean;
deviceInfo.then((deviceInfo) {
  VRDeviceInfoBean deviceInfoBean = deviceInfo;})

return      deviceInfoBean.brand

app版本号

PackageInfo packageInfo = await PackageInfo.fromPlatform();

return        packageInfo.version

手机系统 

if (Platform.isAndroid) {
  clientFrom = "Android";
} else if (Platform.isIOS) {
  clientFrom = "IOS";
} else {
  clientFrom = "else";
}

return      clientFrom

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐