Skip to content

Commit a3da1ef

Browse files
committed
fix(content_management): remove implicit call and improve repository access
- Remove implicit call to CreateSourceBloc - Replace direct repository access with context.read<DataRepository>() - Apply the same change to countriesRepository and languagesRepository
1 parent b185811 commit a3da1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content_management/view/create_source_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CreateSourcePage extends StatelessWidget {
2020
@override
2121
Widget build(BuildContext context) {
2222
return BlocProvider(
23-
create: (context) => CreateSourceBloc(sourcesRepository: sourcesRepository, countriesRepository: countriesRepository, languagesRepository: languagesRepository)(
23+
create: (context) => CreateSourceBloc(
2424
sourcesRepository: context.read<DataRepository<Source>>(),
2525
countriesRepository: context.read<DataRepository<Country>>(),
2626
languagesRepository: context.read<DataRepository<Language>>(),

0 commit comments

Comments
 (0)