laboratory_5

This commit is contained in:
nikbel2004@outlook.com 2024-09-20 16:48:02 +04:00
parent 2e76874a1a
commit 5848037c72

View File

@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:pmd/models/card_data.dart'; import 'package:pmd/models/card_data.dart';
import 'package:pmd/details_page/details_page.dart'; import 'package:pmd/details_page/details_page.dart';
import 'package:pmd/repositories/api_interface.dart'; import 'package:pmd/repositories/api_interface.dart';
import 'package:pmd/repositories/mock_repository.dart';
import '../repositories/potter_repository.dart'; import '../repositories/potter_repository.dart';
@ -20,6 +21,7 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
final TextEditingController _searchController = TextEditingController(); final TextEditingController _searchController = TextEditingController();
final ApiInterface repository = PotterRepository(); final ApiInterface repository = PotterRepository();
// final ApiInterface repository = MockRepository();
late Future<List<CardData>?> _data; late Future<List<CardData>?> _data;
@override @override