Update: 2026-07-26 02:51:53

This commit is contained in:
Hamza-Ayed
2026-07-26 02:51:54 +03:00
parent 91fe0f78f7
commit a954f49307
47 changed files with 269511 additions and 623 deletions
@@ -1,5 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:crypto/crypto.dart';
import 'package:http/http.dart' as http;
import 'package:http/io_client.dart' as http_io;
@@ -25,6 +26,10 @@ class SslPinning {
];
static http.Client createPinnedClient() {
if (kIsWeb) {
return http.Client();
}
final httpClient = HttpClient()
..badCertificateCallback =
(X509Certificate cert, String host, int port) {