From 89b38915060188eb08db129b3d123e4d99836224 Mon Sep 17 00:00:00 2001 From: ohwhylin Date: Mon, 18 Nov 2024 16:30:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BD=D1=83=D0=BB=D0=B0=20?= =?UTF-8?q?=D0=B0=D0=BF=D0=B8=20=D0=BF=D0=BE=D1=82=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 6 +++--- lib/presentation/home_page/bloc/bloc.dart | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index c570ad6..80d524a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -35,15 +35,15 @@ class MyApp extends StatelessWidget { colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), - home: RepositoryProvider( + home: RepositoryProvider( lazy: true, - create: (_) => PokeRepository(), + create: (_) => PotterRepository(), child: BlocProvider( lazy: false, create: (context) => LikeBloc(), child: BlocProvider( lazy: false, - create: (context) => HomeBloc(context.read()), + create: (context) => HomeBloc(context.read()), child: const MyHomePage(title: 'Чубыкина Полина Павловна'), ), ), diff --git a/lib/presentation/home_page/bloc/bloc.dart b/lib/presentation/home_page/bloc/bloc.dart index 44722fd..67f91da 100644 --- a/lib/presentation/home_page/bloc/bloc.dart +++ b/lib/presentation/home_page/bloc/bloc.dart @@ -6,8 +6,8 @@ import 'package:mobilki_lab1/presentation/home_page/bloc/state.dart'; import '../../../data/repositories/pokemon_repository.dart'; class HomeBloc extends Bloc { - // final PotterRepository repo; - final PokeRepository repo; + final PotterRepository repo; + // final PokeRepository repo; HomeBloc(this.repo) : super(const HomeState()) { on(_onLoadData);