2024-11-27 12:33:41 +04:00
import ' dart:ui ' ;
import ' package:pmu_new/data/repositories/api_Interface.dart ' ;
import ' ../../models/CardData.dart ' ;
2024-12-17 17:27:25 +04:00
class MockRepository extends ApiInterface {
2024-11-27 12:33:41 +04:00
@ override
2024-12-17 17:27:25 +04:00
Future < List < CardData > ? > loadData ( { OnErrorCallback ? onError } ) async {
2024-11-27 12:33:41 +04:00
final data = [
CardData (
' Фрукты ' ,
descriptionText:
2024-12-17 17:27:25 +04:00
' Какие же они полезные и сладкие!!!! Generate Lorem Ipsum placeholder text for use in your graphic, print and web layouts, and discover plugins for your favorite writing, design and blogging tools ' ,
2024-11-27 12:33:41 +04:00
imageUrl:
2024-12-17 17:27:25 +04:00
' https://media.gettyimages.com/id/182810893/photo/fruit-mix.jpg?s=612x612&w=0&k=20&c=v9jopDXbS5LCXY1d8uSwEldLJVVkOpYtYtyHD8azWDU= ' ,
2024-11-27 12:33:41 +04:00
) ,
CardData (
' Киви ' ,
descriptionText:
2024-12-17 17:27:25 +04:00
' сладкий и спелый, можно купить по акции прямо сейчас звоните не пожалеете ' ,
imageUrl: ' https://www.diyphotography.net/files/images/3/pictures-of-sliced-fruits-09b.jpg ' ,
2024-11-27 12:33:41 +04:00
) ,
CardData (
' Банан ' ,
descriptionText: ' О г о , че с ним произошло' ,
2024-12-17 17:27:25 +04:00
imageUrl: ' https://www.diyphotography.net/files/images/3/pictures-of-sliced-fruits-01.jpg ' ,
2024-11-27 12:33:41 +04:00
) ,
] ;
return data ;
}
2024-12-17 17:27:25 +04:00
}