30 lines
964 B
Dart
30 lines
964 B
Dart
|
import 'package:flutter/material.dart';
|
|||
|
import 'package:pmu/data/repositories/api_interface.dart';
|
|||
|
import 'package:pmu/domain/models/card.dart';
|
|||
|
|
|||
|
class MockRepository extends ApiInterface {
|
|||
|
@override
|
|||
|
Future<List<CardData>?> loadData({OnErrorCallback? onError}) async {
|
|||
|
return [
|
|||
|
CardData(
|
|||
|
'Абиссинская',
|
|||
|
descriptionText: 'Эфиопия',
|
|||
|
imageUrl:
|
|||
|
'https://ajo-pet.ru/u/ckupload/files/abissinskaya-koshka-sorrel.jpg',
|
|||
|
),
|
|||
|
CardData(
|
|||
|
'Британская',
|
|||
|
descriptionText: 'Великобритания',
|
|||
|
icon: Icons.hail,
|
|||
|
imageUrl:
|
|||
|
'https://zoopt.ru/upload/iblock/ce2/britan.png',
|
|||
|
),
|
|||
|
CardData(
|
|||
|
'Невская Маскарадная',
|
|||
|
descriptionText: 'СССР',
|
|||
|
icon: Icons.warning_amber,
|
|||
|
imageUrl: 'https://wikipet.ru/wp-content/uploads/2018-10/1539243031_1491312430_nev_mask_info.jpg',
|
|||
|
),
|
|||
|
];
|
|||
|
}
|
|||
|
}
|