fix: only use custom http client on android

This commit is contained in:
Jayesh Nirve 2022-06-21 18:20:27 +05:30
parent 1c7b6a4953
commit 3d00d9f532

View file

@ -84,10 +84,10 @@ abstract class ClientManager {
}
static Client createClient(String clientName) {
final _client = CustomHttpClient.createHTTPClient();
return Client(
clientName,
httpClient: _client,
httpClient:
PlatformInfos.isAndroid ? CustomHttpClient.createHTTPClient() : null,
verificationMethods: {
KeyVerificationMethod.numbers,
if (kIsWeb || PlatformInfos.isMobile || PlatformInfos.isLinux)