This commit is contained in:
dyakonovr 2024-09-18 13:58:14 +04:00
parent dfa87e8488
commit 60dbf75f85
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ class CardData {
final String image;
final String species;
CardData({required this.name, required this.image, required this.species});
const CardData({required this.name, required this.image, required this.species});
}

View File

@ -8,7 +8,7 @@ import 'package:lab/repositories/api_interface.dart';
import 'package:pretty_dio_logger/pretty_dio_logger.dart';
class PotterRepository extends ApiInterface {
static final Dio _dio = Dio()
static final Dio _dio = Dio(BaseOptions(connectTimeout: Duration(seconds: 10)))
..interceptors.add(
PrettyDioLogger(request: true, requestHeader: true, requestBody: true));