laboratory_5
This commit is contained in:
parent
26a69c374e
commit
0bee6d7055
@ -20,8 +20,8 @@ class MyHomePage extends StatefulWidget {
|
||||
|
||||
class _MyHomePageState extends State<MyHomePage> {
|
||||
final TextEditingController _searchController = TextEditingController();
|
||||
final ApiInterface repository = PotterRepository();
|
||||
// final ApiInterface repository = MockRepository();
|
||||
// final ApiInterface repository = PotterRepository();
|
||||
final ApiInterface repository = MockRepository();
|
||||
late Future<List<CardData>?> _data;
|
||||
|
||||
@override
|
||||
|
@ -22,7 +22,19 @@ class MockRepository extends ApiInterface {
|
||||
image:
|
||||
"https://cdn0.youla.io/files/images/780_780/63/29/6329d9f543eedb62b7695786-1.jpg",
|
||||
location: "Moscow",
|
||||
description: "house good, very good")
|
||||
description: "house good, very good"),
|
||||
CardData(
|
||||
name: "house 3",
|
||||
image:
|
||||
"https://cdn0.youla.io/files/images/780_780/63/29/6329d9f543eedb62b7695786-1.jpg",
|
||||
location: "Kazan",
|
||||
description: "house good"),
|
||||
CardData(
|
||||
name: "house 4",
|
||||
image:
|
||||
"https://cdn0.youla.io/files/images/780_780/63/29/6329d9f543eedb62b7695786-1.jpg",
|
||||
location: "Moscow",
|
||||
description: "Moscow city")
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user