33 lines
1.0 KiB
Dart
33 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
||
import 'package:pmu/data/repositories/api_interface.dart';
|
||
import 'package:pmu/domain/models/card.dart';
|
||
import 'package:pmu/domain/models/home.dart';
|
||
|
||
class MockRepository extends ApiInterface {
|
||
@override
|
||
Future<HomeData?> loadData({OnErrorCallback? onError}) async {
|
||
return HomeData(
|
||
data: [
|
||
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',
|
||
),
|
||
],
|
||
);
|
||
}
|
||
} |