30 lines
739 B
Dart
30 lines
739 B
Dart
import 'package:flutter_project/data/repositories/api_interface.dart';
|
|
|
|
import '../../domain/models/card.dart';
|
|
|
|
class MockRepository extends ApiInterface {
|
|
@override
|
|
Future<List<CardData>?> loadData() async {
|
|
return [
|
|
CardData(
|
|
name: "Test",
|
|
imageUrl: "https://loremflickr.com/250/150/cat",
|
|
descr: "Description",
|
|
cuttedDescr: "cutted",
|
|
),
|
|
CardData(
|
|
name: "Test 2",
|
|
imageUrl: "https://loremflickr.com/200/250/cat",
|
|
descr: "Description",
|
|
cuttedDescr: "cutted",
|
|
),
|
|
CardData(
|
|
name: "Test 3",
|
|
imageUrl: "https://loremflickr.com/200/200/cat",
|
|
descr: "Description",
|
|
cuttedDescr: "cutted",
|
|
),
|
|
];
|
|
}
|
|
}
|