fix: Fix flutter web getting networkType exception.
This commit is contained in:
+1
-1
@@ -291,7 +291,7 @@ class Utils {
|
|||||||
|
|
||||||
@internal
|
@internal
|
||||||
static FutureOr<String> getNetworkType() async {
|
static FutureOr<String> getNetworkType() async {
|
||||||
if (lkPlatformIsTest()) {
|
if (!kIsWeb && lkPlatformIsTest()) {
|
||||||
return 'wifi';
|
return 'wifi';
|
||||||
}
|
}
|
||||||
var connectivityResult = await (Connectivity().checkConnectivity());
|
var connectivityResult = await (Connectivity().checkConnectivity());
|
||||||
|
|||||||
Reference in New Issue
Block a user