最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter: Showing physical device model on web - Stack Overflow

programmeradmin2浏览0评论

I'm currently using this code:

deviceType: kIsWeb
            ? (PlatformWeb.getPlatformInWeb() == 'Android'
                ? "Android Web"
                : ((PlatformWeb.getPlatformInWeb() == 'iOS'
                    ? "IOS web"
                    : "Desktop Web")))
            : Platform.isAndroid
                ? (await deviceInfo.androidInfo).model
                : (await deviceInfo.iosInfo).utsname.machine, //

The thing is, it would return "Android Web" and "iOS Web.". Is it possible to get the physical device model on the web? Like if I'm using iPhone 11 to return "iPhone 11." or "Samsunsg s 22 Ultra"?

Greetings.

发布评论

评论列表(0)

  1. 暂无评论