Questions tagged «flutter-plugin»

16
检查Flutter应用程序上是否有Internet连接可用
我有一个网络电话要执行。但是在此之前,我需要检查设备是否具有互联网连接。 这是我到目前为止所做的: var connectivityResult = new Connectivity().checkConnectivity();// User defined class if (connectivityResult == ConnectivityResult.mobile || connectivityResult == ConnectivityResult.wifi) {*/ this.getData(); } else { neverSatisfied(); } 上面的方法不起作用。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.