DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically
indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.
کد به شکل زیر هستش:
final httpClient = Dio(BaseOptions(
baseUrl: "https://fapi.7learn.com/api/v1/", // Change http to https
connectTimeout: Duration(seconds: 30), // Add timeout
receiveTimeout: Duration(seconds: 30),
));