手机型号:
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