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