Files
syncrow-app/lib/services/api/my_http_overrides.dart
T
Mohammad Salameh 1d18210158 restructured the application
added .end files
switched to BLoC state-management
removed unnecessary helpers
initialized Scenes Page
2024-02-15 14:00:09 +03:00

11 lines
373 B
Dart

import 'dart:io';
// We use this class to skip the problem of SSL certification and solve the Image.network(url) issue
class MyHttpOverrides extends HttpOverrides {
@override
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..badCertificateCallback = (X509Certificate cert, String host, int port) => true;
}
}