flutter判断客户端是否为安卓
发布时间:2021-06-01 14:40
UI中:
Theme.of(context).platform == TargetPlatform.android
初始化器中:
import 'dart:io'
Platform.isAndroid
Theme.of(context).platform == TargetPlatform.android
初始化器中:
import 'dart:io'
Platform.isAndroid
更新时间:2024-12-18 20:26