PMU-PIbd-31-Potapov-N-S/lib/data/repositories/mock_user_repository.dart

27 lines
845 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:pmu/data/repositories/api_interface.dart';
import 'package:pmu/domain/card.dart';
class MockUserRepository extends ApiInterface {
@override
Future<List<CardPostData>?> loadData() async {
return [
const CardPostData(
name: "Марьяна",
surname: "Ро",
description: "Люблю вечерами погамать в майн",
imageUrl: "https://placehold.co/600x400/png",
age: 21,
distance: 24.5,
isLiked: false),
const CardPostData(
name: "Константин",
surname: "Злобин",
description: "Веду канал в тг про криптожизнь",
imageUrl: "https://placehold.co/600x400/png",
age: 24,
distance: 478.3,
isLiked: false)
];
}
}