如何从Flutter检查设备的OS版本? [英] How to check the device OS version from Flutter?
本文介绍了如何从Flutter检查设备的OS版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Platform.operatingSystem
会告诉您是在Android还是iOS上运行。
Platform.operatingSystem
will tell you whether you're running on Android or iOS.
如何查看我正在运行哪个版本的设备操作系统?
How can I check which version of the device OS am I running on?
推荐答案
有一个用于此目的的插件:
There's a plugin for this exact purpose:
https://github.com/flutter/plugins/tree/master/packages/device_info
这篇关于如何从Flutter检查设备的OS版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文