Skip to content

Commit cdc1b4c

Browse files
committed
feat(SharedDataBloc): add country and language repositories and trigger data request
- Inject countriesRepository and languagesRepository into SharedDataBloc - Dispatch SharedDataRequested event after bloc initialization - Update dependencies in App widget
1 parent 718b1e7 commit cdc1b4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/app/view/app.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ class App extends StatelessWidget {
108108
headlinesRepository: context.read<DataRepository<Headline>>(),
109109
topicsRepository: context.read<DataRepository<Topic>>(),
110110
sourcesRepository: context.read<DataRepository<Source>>(),
111-
),
111+
countriesRepository: context.read<DataRepository<Country>>(),
112+
languagesRepository: context.read<DataRepository<Language>>(),
113+
)..add(const SharedDataRequested()),
112114
),
113115
BlocProvider(
114116
create: (context) => DashboardBloc(

0 commit comments

Comments
 (0)