fix: Fix flutter web getting networkType exception.

This commit is contained in:
cloudwebrtc
2022-09-05 10:41:14 +08:00
parent bcd989b20b
commit d6d2f36428
+1 -1
View File
@@ -291,7 +291,7 @@ class Utils {
@internal
static FutureOr<String> getNetworkType() async {
if (lkPlatformIsTest()) {
if (!kIsWeb && lkPlatformIsTest()) {
return 'wifi';
}
var connectivityResult = await (Connectivity().checkConnectivity());