判断设备是否连接移动网络
Future<bool> isConnectedToMobile() async { var connectivityResult = await Connectivity().checkConnectivity(); return connectivityResult.contains(ConnectivityResult.mobile); }