📜  检查平台是否是 chrome in flutter - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:33.829000             🧑  作者: Mango

代码示例1
import 'package:flutter/foundation.dart' show kIsWeb;

if (kIsWeb) {
  // running on the web!
} else {
  // NOT running on the web! You can check for additional platforms here.
}