import 'dart:io' show Platform;
@override
? void initState() {
? ? if (Platform.isIOS) {
? ? ? print("IOS");
? ? } else if (Platform.isAndroid) {
? ? ? print("安卓");
? ? }
? }
參考:
原文鏈接:https://blog.csdn.net/weixin_46504917/article/details/119828774
import 'dart:io' show Platform;
@override
? void initState() {
? ? if (Platform.isIOS) {
? ? ? print("IOS");
? ? } else if (Platform.isAndroid) {
? ? ? print("安卓");
? ? }
? }
參考:
原文鏈接:https://blog.csdn.net/weixin_46504917/article/details/119828774